DictionarySetViewModel.cs 606 B

123456789101112131415161718192021
  1. using B20UVLog.Models;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Collections.ObjectModel;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace B20UVLog.ViewModels
  9. {
  10. class DictionarySetViewModel
  11. {
  12. public ObservableCollection<DictModel> Dicts { get; set; }
  13. public DictionarySetViewModel()
  14. {
  15. Dicts = new();
  16. Dicts.Add(new() { Type = "normal", Code = "status", Key = "0", Value = "关闭" });
  17. Dicts.Add(new() { Type = "normal", Code = "status", Key = "1", Value = "开启" });
  18. }
  19. }
  20. }