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