2021-04-01 21:30:29 +04:00
|
|
|
|
using DesktopTools.Controls;
|
|
|
|
|
using DesktopTools.Enums;
|
|
|
|
|
using DesktopTools.Interfaces;
|
|
|
|
|
using DesktopTools.Models;
|
|
|
|
|
using ModuleTools.Enums;
|
|
|
|
|
using SecurityBusinessLogic.BindingModels;
|
|
|
|
|
using SecurityBusinessLogic.BusinessLogics;
|
|
|
|
|
using SecurityBusinessLogic.ViewModels;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2021-04-02 15:53:15 +04:00
|
|
|
|
namespace SecurityWindowsDesktop.EntityControls
|
2021-04-01 21:30:29 +04:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Реализация контрола для списка настроек среды
|
|
|
|
|
/// </summary>
|
|
|
|
|
public partial class ControlEnviromentSettingList :
|
|
|
|
|
GenericControlEntityList<EnviromentSettingGetBindingModel, EnviromentSettingSetBindingModel, EnviromentSettingListViewModel, EnviromentSettingViewModel, EnviromentSettingBusinessLogic>,
|
|
|
|
|
IGenericControlEntityList<EnviromentSettingListViewModel, EnviromentSettingViewModel>
|
|
|
|
|
{
|
|
|
|
|
public ControlEnviromentSettingList()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
Title = "Настройки Среды";
|
|
|
|
|
ControlId = new Guid("b3865c23-b1db-475b-b95c-aa51edc60388");
|
|
|
|
|
AccessOperation = AccessOperation.НастройкиСреды;
|
|
|
|
|
ControlViewEntityElement = new ControlEnviromentSettingElement();
|
|
|
|
|
_genericControlViewEntityList = this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public IControl GetInstanceGenericControl() => new ControlEnviromentSettingList() { ControlId = Guid.NewGuid() };
|
|
|
|
|
|
|
|
|
|
public ControlViewEntityListConfiguration GetConfigControl() => new()
|
|
|
|
|
{
|
|
|
|
|
PaginationOn = false,
|
|
|
|
|
HideToolStripButton = new List<ToolStripButtonListNames>
|
|
|
|
|
{
|
|
|
|
|
ToolStripButtonListNames.toolStripButtonAdd,
|
|
|
|
|
ToolStripButtonListNames.toolStripButtonSearch
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
public EnviromentSettingListViewModel GetDataForControl() => _businessLogic.GetList(new EnviromentSettingGetBindingModel());
|
|
|
|
|
|
|
|
|
|
public EnviromentSettingListViewModel GetDataFromParentForControl(Guid id) => throw new NotImplementedException();
|
|
|
|
|
|
|
|
|
|
public EnviromentSettingListViewModel GetDataWithPageNameForControl(string key) => throw new NotImplementedException();
|
|
|
|
|
|
|
|
|
|
public EnviromentSettingListViewModel GetDataWithPageNumberForControl(int page, int count) => throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
}
|