26 lines
716 B
C#
26 lines
716 B
C#
using ModelTools.Attributes;
|
|
using ModelTools.ViewModels;
|
|
|
|
namespace SecurityBusinessLogic.ViewModels
|
|
{
|
|
/// <summary>
|
|
/// Список общих настроек системы
|
|
/// </summary>
|
|
public class EnviromentSettingListViewModel : ListViewModel<EnviromentSettingViewModel> { }
|
|
|
|
/// <summary>
|
|
/// Элемент общих настроек системы
|
|
/// </summary>
|
|
public class EnviromentSettingViewModel : ElementViewModel
|
|
{
|
|
[ViewModelOnListProperty("Ключ")]
|
|
[MapConfiguration("Key")]
|
|
public string Key { get; set; }
|
|
|
|
[ViewModelOnListProperty("Значение")]
|
|
[MapConfiguration("Value")]
|
|
public string Value { get; set; }
|
|
|
|
public override string ToString() => Key;
|
|
}
|
|
} |