DepartmentProject/DepartmentPortal/Department/DepartmentWindowsDesktop/EntityControls/TimeNorm/ControlTimeNormElement.cs

30 lines
1.0 KiB
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-06 22:07:11 +04:00
namespace DepartmentWindowsDesktop.EntityControls
{
/// <summary>
/// Реализация контрола для нормы времени
/// </summary>
public partial class ControlTimeNormElement :
GenericControlEntityElement<TimeNormGetBindingModel, TimeNormSetBindingModel, TimeNormListViewModel, TimeNormViewModel, ITimeNormLogic>,
2021-04-06 22:07:11 +04:00
IGenericControlEntityElement
{
public ControlTimeNormElement()
{
InitializeComponent();
Title = "Норма времени";
ControlId = new Guid("17e65fa1-e809-45fe-b21c-dbd2ecd53194");
_genericControlViewEntityElement = this;
}
public IControl GetInstanceGenericControl() => new ControlTimeNormElement() { ControlId = Guid.NewGuid() };
public ControlViewEntityElementConfiguration GetConfigControl() => new();
2021-04-06 22:07:11 +04:00
}
}