2021-03-27 23:50:29 +04:00
|
|
|
|
using DesktopTools.Controls;
|
|
|
|
|
using DesktopTools.Models;
|
2021-03-28 19:15:55 +04:00
|
|
|
|
using ModuleTools.BusinessLogics;
|
|
|
|
|
using ModuleTools.Enums;
|
2021-03-27 23:50:29 +04:00
|
|
|
|
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();
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|