コード例 #1
0
 private void Element_PropertyChanged(object sender, PropertyChangedEventArgs args)
 {
     if (_RaiseElementsChanged)
     {
         var e = sender as RemoteElement;
         Save();
         RemoteHub.GetBroadcastContext().UpdateControl(e.ToWebControl());
         if (e.BoundPropertyNames.Contains(args.PropertyName))
         {
             _Watcher.UpdateBoundProperties(e);
         }
     }
 }
コード例 #2
0
 private void ElementsChanged(bool fromSelf = false)
 {
     if (_RaiseElementsChanged)
     {
         if (!fromSelf)
         {
             Save();
         }
         RemoteHub.GetBroadcastContext().RefreshControls();
         _Watcher.UpdateBoundProperties(Buttons);
         PropertyChanged.Notify(() => Buttons);
     }
 }