DepartmentProject/DepartmentPortal/Department/DepartmentWindowsDesktop/EntityControls/BasicDepartment/ControlBasicDepartmentElement.cs

31 lines
1.1 KiB
C#

using DepartmentContract.BindingModels;
using DepartmentContract.Logics.IGenericEntityLogic;
using DepartmentContract.ViewModels;
using System;
using ToolsDesktop.Controls;
using ToolsDesktop.Interfaces;
using ToolsDesktop.Models;
namespace DepartmentWindowsDesktop.EntityControls
{
/// <summary>
/// Реализация контрола для базовой кафедры
/// </summary>
public partial class ControlBasicDepartmentElement :
GenericControlEntityElement<BasicDepartmentGetBindingModel, BasicDepartmentSetBindingModel, BasicDepartmentListViewModel, BasicDepartmentViewModel, IBasicDepartmentLogic>,
IGenericControlEntityElement
{
public ControlBasicDepartmentElement()
{
InitializeComponent();
Title = "Базовая кафедра";
ControlId = new Guid("bce7c7f4-2b7f-4b0c-aa4b-0c7a026967c6");
_genericControlViewEntityElement = this;
}
public IControl GetInstanceGenericControl() => new ControlBasicDepartmentElement() { ControlId = Guid.NewGuid() };
public ControlViewEntityElementConfiguration GetConfigControl() => new();
}
}