DepartmentProject/DepartmentPortal/Department/DepartmentWindowsDesktop/EntityControls/Order/ControlOrderElement.cs

30 lines
985 B
C#
Raw Normal View History

2021-04-13 12:52:45 +04:00
using DepartmentBusinessLogic.BindingModels;
using DepartmentBusinessLogic.BusinessLogics;
using DepartmentBusinessLogic.ViewModels;
using DesktopTools.Controls;
using DesktopTools.Interfaces;
using DesktopTools.Models;
using System;
namespace DepartmentWindowsDesktop.EntityControls
{
/// <summary>
/// Реализация контрола для приказа
/// </summary>
public partial class ControlOrderElement :
GenericControlEntityElement<OrderGetBindingModel, OrderSetBindingModel, OrderListViewModel, OrderViewModel, OrderBusinessLogic>,
IGenericControlEntityElement
{
public ControlOrderElement()
{
InitializeComponent();
Title = "Приказ";
ControlId = new Guid("f4637ef8-b1f4-4980-b0ef-776496e2a5dc");
_genericControlViewEntityElement = this;
}
public IControl GetInstanceGenericControl() => new ControlOrderElement() { ControlId = Guid.NewGuid() };
public ControlViewEntityElementConfiguration GetConfigControl() => new();
}
}