2021-04-01 21:30:29 +04:00
|
|
|
|
using DesktopTools.Models;
|
|
|
|
|
using ModuleTools.Enums;
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace DesktopTools.Interfaces
|
|
|
|
|
{
|
2022-03-18 12:47:34 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Основные параметры для контрола
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IControl
|
2021-04-01 21:30:29 +04:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Идентификатор контрола
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Guid ControlId { get; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Заголовок контрола
|
|
|
|
|
/// </summary>
|
|
|
|
|
string Title { get; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Операция в системе
|
|
|
|
|
/// </summary>
|
|
|
|
|
public AccessOperation AccessOperation { get; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Создание дубликата
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
IControl GetInstance();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Открытие контрола
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model"></param>
|
|
|
|
|
void Open(ControlOpenModel model);
|
2021-04-02 09:29:09 +04:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Сохранение настроек в xml-строку
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
string SaveToXml();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Загрузка настроек из xml-строки
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="xml"></param>
|
|
|
|
|
void LoadFromXml(string xml);
|
2021-04-01 21:30:29 +04:00
|
|
|
|
}
|
|
|
|
|
}
|