diff --git a/DepartmentPortal/Common/DesktopTools/Interfaces/IControl.cs b/DepartmentPortal/Common/DesktopTools/Interfaces/IControl.cs
index 8488cf7..c4da828 100644
--- a/DepartmentPortal/Common/DesktopTools/Interfaces/IControl.cs
+++ b/DepartmentPortal/Common/DesktopTools/Interfaces/IControl.cs
@@ -35,5 +35,17 @@ namespace DesktopTools.Interfaces
///
///
void Open(ControlOpenModel model);
+
+ ///
+ /// Сохранение настроек в xml-строку
+ ///
+ ///
+ string SaveToXml();
+
+ ///
+ /// Загрузка настроек из xml-строки
+ ///
+ ///
+ void LoadFromXml(string xml);
}
}
\ No newline at end of file
diff --git a/DepartmentPortal/Common/DesktopTools/Interfaces/IControlViewEntityElement.cs b/DepartmentPortal/Common/DesktopTools/Interfaces/IControlViewEntityElement.cs
index 7aaecfd..69bcdbf 100644
--- a/DepartmentPortal/Common/DesktopTools/Interfaces/IControlViewEntityElement.cs
+++ b/DepartmentPortal/Common/DesktopTools/Interfaces/IControlViewEntityElement.cs
@@ -18,5 +18,17 @@ namespace DesktopTools.Interfaces
///
///
IControl GetInstanceControl();
+
+ ///
+ /// Сохранение настроек в xml-строку
+ ///
+ ///
+ string SaveControlToXml();
+
+ ///
+ /// Загрузка настроек из xml-строки
+ ///
+ ///
+ void LoadControlFromXml(string xml);
}
}
\ No newline at end of file
diff --git a/DepartmentPortal/Common/DesktopTools/Interfaces/IControlViewEntityList.cs b/DepartmentPortal/Common/DesktopTools/Interfaces/IControlViewEntityList.cs
index 0720e52..80f5ba2 100644
--- a/DepartmentPortal/Common/DesktopTools/Interfaces/IControlViewEntityList.cs
+++ b/DepartmentPortal/Common/DesktopTools/Interfaces/IControlViewEntityList.cs
@@ -25,5 +25,17 @@ namespace DesktopTools.Interfaces
///
///
string GetTitleFromIdControl(Guid id);
+
+ ///
+ /// Сохранение настроек в xml-строку
+ ///
+ ///
+ string SaveControlToXml();
+
+ ///
+ /// Загрузка настроек из xml-строки
+ ///
+ ///
+ void LoadControlFromXml(string xml);
}
}
\ No newline at end of file
diff --git a/DepartmentPortal/Common/DesktopTools/MainControls/GenericControlEntityElement.cs b/DepartmentPortal/Common/DesktopTools/MainControls/GenericControlEntityElement.cs
index ac5534d..81f8d9c 100644
--- a/DepartmentPortal/Common/DesktopTools/MainControls/GenericControlEntityElement.cs
+++ b/DepartmentPortal/Common/DesktopTools/MainControls/GenericControlEntityElement.cs
@@ -13,6 +13,7 @@ using System;
using System.Linq;
using System.Reflection;
using System.Windows.Forms;
+using System.Xml.Linq;
namespace DesktopTools.Controls
{
@@ -50,14 +51,29 @@ namespace DesktopTools.Controls
///
private event Action CloseElementEvent;
+ ///
+ /// События установки одинаковой ширины для заголовков контролов
+ ///
private event Action SetTitleWidth;
+ ///
+ /// Событие установки значения
+ ///
private event Action