using DepartmentBusinessLogic.BindingModels; using DepartmentBusinessLogic.BusinessLogics; using DepartmentBusinessLogic.ViewModels; using DesktopTools.Controls; using DesktopTools.Enums; using DesktopTools.Interfaces; using DesktopTools.Models; using ModuleTools.Enums; using System; using System.Collections.Generic; namespace DepartmentWindowsDesktop.EntityControls { /// /// Реализация контрола для списка учебных планов /// public partial class ControlAcademicPlanList : GenericControlEntityList, IGenericControlEntityList { public ControlAcademicPlanList() { InitializeComponent(); Title = "Учебнве планы"; ControlId = new Guid("144d098c-ff55-4786-ae63-3105a92990cd"); AccessOperation = AccessOperation.УчебныеПланы; ControlViewEntityElement = new ControlAcademicPlanElement(); _genericControlViewEntityList = this; } public IControl GetInstanceGenericControl() => new ControlAcademicPlanList() { ControlId = Guid.NewGuid() }; public ControlViewEntityListConfiguration GetConfigControl() => new() { PaginationOn = false, HideToolStripButton = new List { ToolStripButtonListNames.toolStripButtonSearch } }; } }