37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
using DesktopTools.Controls;
|
||
using DesktopTools.Models;
|
||
using ModelTools.BusinessLogics;
|
||
using ModelTools.Enums;
|
||
using SecurityBusinessLogic.BindingModels;
|
||
using SecurityBusinessLogic.BusinessLogics;
|
||
using SecurityBusinessLogic.ViewModels;
|
||
using System;
|
||
|
||
namespace SecurityWindowsDesktop.Controls
|
||
{
|
||
public partial class EnviromentSettingControl : AbstractGenerticControlEntityList<EnviromentSettingGetBindingModel, EnviromentSettingSetBindingModel, EnviromentSettingListViewModel, EnviromentSettingViewModel, EnviromentSettingBusinessLogic>
|
||
{
|
||
public EnviromentSettingControl()
|
||
{
|
||
InitializeComponent();
|
||
_businessLogic = UnityContainerConfigurator.Resolve<EnviromentSettingBusinessLogic>();
|
||
Title = "Настройки Среды";
|
||
Id = new Guid("b3865c23-b1db-475b-b95c-aa51edc60388");
|
||
Order = 1;
|
||
AccessOperation = AccessOperation.НастройкиСреды;
|
||
}
|
||
|
||
public override ControlViewEntityList Clone() => new EnviromentSettingControl() { Id = Guid.NewGuid() };
|
||
|
||
protected override ControlViewEntityListConfiguration GetConfig() => new()
|
||
{
|
||
PaginationOn = false
|
||
};
|
||
|
||
protected override EnviromentSettingListViewModel GetData()
|
||
{
|
||
var list = _businessLogic.GetList(new EnviromentSettingGetBindingModel());
|
||
return list;
|
||
}
|
||
}
|
||
} |