Пример #1
0
 public override void OnPropertyChanged(string name)
 {
     if (RunOnUIAction != null)
     {
         RunOnUIAction.Invoke(() =>
         {
             base.OnPropertyChanged(name);
             PropertyChangedAction?.Invoke(name);
         });
     }
     else
     {
         base.OnPropertyChanged(name);
         PropertyChangedAction?.Invoke(name);
     }
 }
Пример #2
0
 public OverlayEntryWrapper(string identifier)
 {
     Identifier       = identifier;
     PropertyChanged += (s, e) => PropertyChangedAction?.Invoke();
 }