Exemplo n.º 1
0
 public SysDicItemViewModel(ISysDicItem data) : this(data.GetId())
 {
     _dicId       = data.DicId;
     _code        = data.Code;
     _value       = data.Value;
     _description = data.Description;
     _sortNumber  = data.SortNumber;
 }
Exemplo n.º 2
0
 private AboutPageViewModel()
 {
     if (!NTMinerRoot.IsInDesignMode)
     {
         Global.Access <SysDicItemUpdatedEvent>(
             Guid.Parse("ec86ee32-f988-4117-abb2-c0d4388b201f"),
             "更新了系统字典项AboutText后调整VM内存",
             LogEnum.Log,
             action: message => {
             if (dicItem == null || message.Source.GetId() == dicItem.GetId())
             {
                 OnPropertyChanged(nameof(AboutText));
             }
         });
     }
 }