2024-11-12 03:11:10 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
|
|
|
|
namespace PluginsConventionLibrary.Plugins
|
|
|
|
|
{
|
|
|
|
|
public interface IPluginsConvention
|
|
|
|
|
{
|
2024-11-25 19:46:00 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Название плагина
|
|
|
|
|
/// </summary>
|
2024-11-12 03:11:10 +04:00
|
|
|
|
string PluginName { get; }
|
2024-11-25 19:46:00 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получение контрола для вывода набора данных
|
|
|
|
|
/// </summary>
|
2024-11-12 03:11:10 +04:00
|
|
|
|
UserControl GetControl { get; }
|
2024-11-25 19:46:00 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получение элемента, выбранного в контроле
|
|
|
|
|
/// </summary>
|
2024-11-12 03:11:10 +04:00
|
|
|
|
PluginsConventionElement GetElement { get; }
|
2024-11-25 19:46:00 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получение формы для создания/редактирования объекта
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="element"></param>
|
|
|
|
|
/// <returns></returns>
|
2024-11-12 03:11:10 +04:00
|
|
|
|
Form GetForm(PluginsConventionElement element);
|
2024-11-25 19:46:00 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получение формы для работы со справочником
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Form GetThesaurus();
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Удаление элемента
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="element"></param>
|
|
|
|
|
/// <returns></returns>
|
2024-11-12 03:11:10 +04:00
|
|
|
|
bool DeleteElement(PluginsConventionElement element);
|
2024-11-25 19:46:00 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Обновление набора данных в контроле
|
|
|
|
|
/// </summary>
|
2024-11-12 03:11:10 +04:00
|
|
|
|
void ReloadData();
|
2024-11-25 19:46:00 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Создание простого документа
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="saveDocument"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
bool CreateSimpleDocument(PluginsConventionSaveDocument
|
|
|
|
|
saveDocument);
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Создание простого документа
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="saveDocument"></param>
|
|
|
|
|
/// <returns></returns>
|
2024-11-12 03:11:10 +04:00
|
|
|
|
bool CreateTableDocument(PluginsConventionSaveDocument saveDocument);
|
2024-11-25 19:46:00 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Создание документа с диаграммой
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="saveDocument"></param>
|
|
|
|
|
/// <returns></returns>
|
2024-11-12 03:11:10 +04:00
|
|
|
|
bool CreateChartDocument(PluginsConventionSaveDocument saveDocument);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|