DepartmentProject/DepartmentPortal/Department/DepartmentWindowsDesktop/EntityControls/Employee/ControlEmployeeElement.cs

27 lines
917 B
C#
Raw Normal View History

2021-04-03 11:41:02 +04:00
using DepartmentBusinessLogic.BindingModels;
using DepartmentBusinessLogic.BusinessLogics;
using DepartmentBusinessLogic.ViewModels;
using DesktopTools.Controls;
using DesktopTools.Interfaces;
using System;
namespace DepartmentWindowsDesktop.EntityControls
{
2021-04-03 13:41:19 +04:00
/// <summary>
/// Реализация контрола для сотрудника
/// </summary>
2021-04-03 11:41:02 +04:00
public partial class ControlEmployeeElement :
GenericControlEntityElement<EmployeeGetBindingModel, EmployeeSetBindingModel, EmployeeListViewModel, EmployeeViewModel, EmployeeBusinessLogic>,
IGenericControlEntityElement
{
public ControlEmployeeElement()
{
InitializeComponent();
Title = "Сотрудник";
ControlId = new Guid("9aadbb72-dde5-483f-9bba-021127b42c49");
_genericControlViewEntityElement = this;
}
public IControl GetInstanceGenericControl() => new ControlEmployeeElement() { ControlId = Guid.NewGuid() };
}
}