DepartmentProject/DepartmentPortal/Common/ToolsDesktop/Models/ControlOpenModel.cs

41 lines
1.2 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using ToolsDesktop.Enums;
using System;
namespace ToolsDesktop.Models
{
/// <summary>
/// Данные, передаваемый при открытии контрола
/// </summary>
public class ControlOpenModel
{
/// <summary>
/// Варинат открытия контрола списка
/// </summary>
public ControlOpenMode OpenMode { get; set; }
/// <summary>
/// Не загружать данные
/// </summary>
public bool LazyLoading { get; set; } = false;
/// <summary>
/// Событипе на закрытие контрола списка, если открыт как список
/// </summary>
public Action<Guid> CloseList { get; set; }
/// <summary>
/// Событипе на закрытие контрола списка, если открыт на выбор
/// </summary>
public Action<bool> CloseSelect { get; set; }
/// <summary>
/// Событипе на закрытие контрола Элемента
/// </summary>
public Action<Guid> CloseElement { get; set; }
/// <summary>
/// Идентификатор выбранной записи для контрола элемента
/// </summary>
public Guid? ElementId { get; set; }
}
}