using DepartmentContract.BindingModels; using DepartmentContract.Logics.IGenericEntityLogic; using DepartmentContract.ViewModels; using System; using ToolsDesktop.Controls; using ToolsDesktop.Interfaces; using ToolsDesktop.Models; namespace DepartmentWindowsDesktop.EntityControls { /// /// Реализация контрола для года поступления /// public partial class ControlEnrollmentYearElement : GenericControlEntityElement, IGenericControlEntityElement { public ControlEnrollmentYearElement() { InitializeComponent(); Title = "Год поступления"; ControlId = new Guid("363636d3-b3d0-4374-a573-2bcc78ca4eea"); _genericControlViewEntityElement = this; } public IControl GetInstanceGenericControl() => new ControlEnrollmentYearElement() { ControlId = Guid.NewGuid() }; public ControlViewEntityElementConfiguration GetConfigControl() => new(); } }