bocchanskyy
cc2fa54e35
At least let me clean my room I don't want to leave like this 'Cause the last thing I want to do is Make my people make decisions Wondering what to do, oh Should they keep it on display Or redecorate? (just started working on lab4)
59 lines
2.2 KiB
C#
59 lines
2.2 KiB
C#
namespace PluginsConventionLibrary
|
||
{
|
||
public interface IPluginsConvention
|
||
{
|
||
/// <summary>
|
||
/// Название плагина
|
||
/// </summary>
|
||
string PluginName { get; }
|
||
/// <summary>
|
||
/// Получение контрола для вывода набора данных
|
||
/// </summary>
|
||
UserControl GetControl { get; }
|
||
/// <summary>
|
||
/// Получение элемента, выбранного в контроле
|
||
/// </summary>
|
||
PluginsConventionElement GetElement { get; }
|
||
/// <summary>
|
||
/// Получение формы для создания/редактирования объекта
|
||
/// </summary>
|
||
/// <param name="element"></param>
|
||
/// <returns></returns>
|
||
Form GetForm(PluginsConventionElement element);
|
||
/// <summary>
|
||
/// Получение формы для работы со справочником
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
Form GetThesaurus();
|
||
/// <summary>
|
||
/// Удаление элемента
|
||
/// </summary>
|
||
/// <param name="element"></param>
|
||
/// <returns></returns>
|
||
bool DeleteElement(PluginsConventionElement element);
|
||
/// <summary>
|
||
/// Обновление набора данных в контроле
|
||
/// </summary>
|
||
void ReloadData();
|
||
/// <summary>
|
||
/// Создание простого документа
|
||
/// </summary>
|
||
/// <param name="saveDocument"></param>
|
||
/// <returns></returns>
|
||
bool CreateSimpleDocument(PluginsConventionSaveDocument
|
||
saveDocument);
|
||
/// <summary>
|
||
/// Создание простого документа
|
||
/// </summary>
|
||
/// <param name="saveDocument"></param>
|
||
/// <returns></returns>
|
||
bool CreateTableDocument(PluginsConventionSaveDocument saveDocument);
|
||
/// <summary>
|
||
/// Создание документа с диаграммой
|
||
/// </summary>
|
||
/// <param name="saveDocument"></param>
|
||
/// <returns></returns>
|
||
bool CreateChartDocument(PluginsConventionSaveDocument saveDocument);
|
||
}
|
||
}
|