DepartmentProject/DepartmentPortal/Department/DepartmentWindowsDesktop/EntityControls/Discipline/ControlDisciplineElement.cs

30 lines
1.0 KiB
C#
Raw Permalink Normal View History

using DepartmentContract.BindingModels;
using DepartmentContract.Logics.IGenericEntityLogic;
using DepartmentContract.ViewModels;
using System;
2022-03-18 22:48:14 +04:00
using ToolsDesktop.Controls;
using ToolsDesktop.Interfaces;
using ToolsDesktop.Models;
2021-04-03 19:03:56 +04:00
namespace DepartmentWindowsDesktop.EntityControls
{
/// <summary>
/// Реализация контрола для дисциплины
/// </summary>
public partial class ControlDisciplineElement :
GenericControlEntityElement<DisciplineGetBindingModel, DisciplineSetBindingModel, DisciplineListViewModel, DisciplineViewModel, IDisciplineLogic>,
2021-04-03 19:03:56 +04:00
IGenericControlEntityElement
{
public ControlDisciplineElement()
{
InitializeComponent();
Title = "Дисципилна";
ControlId = new Guid("8905d288-48c2-4bee-bf5e-2115bbccf6a7");
_genericControlViewEntityElement = this;
}
public IControl GetInstanceGenericControl() => new ControlDisciplineElement() { ControlId = Guid.NewGuid() };
public ControlViewEntityElementConfiguration GetConfigControl() => new();
2021-04-03 19:03:56 +04:00
}
}