/// <summary>Загрузить параметры отображения из XML и присвоить форме /// </summary> public static void LoadFromXML(Form form, string xml, FormOptionsSetType setType = FormOptionsSetType.All) { if (form == null) { return; } FormsConfig.CreateFromXML(xml)?.SetToForm(form, setType); }
/// <summary>Изменить/добавить параметры отображения формы в строке настроек форм (xml) /// </summary> public static string GetInXML(Form form, string xml) { if (form == null) { return(xml); } FormsConfig config = FormsConfig.CreateFromXML(xml); if (config == null) { return(xml); } config.GetFromForm(form); return(config.GetXML() ?? xml); }