2021-03-26 20:09:52 +04:00
|
|
|
|
using ModelTools.Attributes;
|
|
|
|
|
using ModelTools.ViewModels;
|
|
|
|
|
|
|
|
|
|
namespace SecurityBusinessLogic.ViewModels
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Список общих настроек системы
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class EnviromentSettingListViewModel : ListViewModel<EnviromentSettingViewModel> { }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Элемент общих настроек системы
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class EnviromentSettingViewModel : ElementViewModel
|
|
|
|
|
{
|
2021-03-27 23:50:29 +04:00
|
|
|
|
[ViewModelOnListProperty("Ключ")]
|
2021-03-26 20:09:52 +04:00
|
|
|
|
[MapConfiguration("Key")]
|
|
|
|
|
public string Key { get; set; }
|
|
|
|
|
|
2021-03-27 23:50:29 +04:00
|
|
|
|
[ViewModelOnListProperty("Значение", 100)]
|
2021-03-26 20:09:52 +04:00
|
|
|
|
[MapConfiguration("Value")]
|
|
|
|
|
public int Value { get; set; }
|
|
|
|
|
|
|
|
|
|
public override string ToString() => Key;
|
|
|
|
|
}
|
|
|
|
|
}
|