using ModuleTools.Attributes; using ModuleTools.Enums; using ModuleTools.ViewModels; namespace SecurityBusinessLogic.ViewModels { /// /// Список общих настроек системы /// public class EnviromentSettingListViewModel : ListViewModel { } /// /// Элемент общих настроек системы /// [ViewModelControlElementClass()] public class EnviromentSettingViewModel : ElementViewModel { [ViewModelControlListProperty("Ключ")] [ViewModelControlElementProperty("Ключ", ControlType.ControlString, MustHaveValue = true, ReadOnly = true)] [MapConfiguration("Key", AllowCopyWithoutRigth = false)] public string Key { get; set; } [ViewModelControlListProperty("Значение")] [ViewModelControlElementProperty("Значение", ControlType.ControlString, MustHaveValue = true)] [MapConfiguration("Value", AllowCopyWithoutRigth = false)] public string Value { get; set; } [ViewModelControlListProperty("Описание")] [ViewModelControlElementProperty("Описание", ControlType.ControlText, Height = 200)] [MapConfiguration("Description", AllowCopyWithoutRigth = false)] public string Description { get; set; } } }