using DepartmentContract.BindingModels;
using DepartmentContract.Logics.IGenericEntityLogic;
using DepartmentContract.ViewModels;
using System;
using System.Collections.Generic;
using ToolsDesktop.Controls;
using ToolsDesktop.Enums;
using ToolsDesktop.Interfaces;
using ToolsDesktop.Models;
using ToolsModule.Enums;
namespace DepartmentWindowsDesktop.EntityControls
{
///
/// Реализация контрола для списка ученых званий
///
public partial class ControlLecturerAcademicRankList :
GenericControlEntityList,
IGenericControlEntityList
{
public ControlLecturerAcademicRankList()
{
InitializeComponent();
Title = "Ученые звания преподавателей";
ControlId = new Guid("f38651c5-6717-49ca-bd3f-2556bb90a7a0");
AccessOperation = AccessOperation.Преподаватели;
ControlViewEntityElement = new ControlLecturerAcademicRankElement();
_genericControlViewEntityList = this;
}
public IControl GetInstanceGenericControl() => new ControlLecturerAcademicRankList() { ControlId = Guid.NewGuid() };
public ControlViewEntityListConfiguration GetConfigControl() => new()
{
PaginationOn = false,
HideToolStripButton = new List
{
ToolStripButtonListNames.toolStripButtonSearch
}
};
}
}