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

30 lines
987 B
C#
Raw 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-13 12:52:45 +04:00
namespace DepartmentWindowsDesktop.EntityControls
{
/// <summary>
/// Реализация контрола для приказа
/// </summary>
public partial class ControlOrderElement :
GenericControlEntityElement<OrderGetBindingModel, OrderSetBindingModel, OrderListViewModel, OrderViewModel, IOrderLogic>,
2021-04-13 12:52:45 +04:00
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();
}
}