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); } } }
private void ElementsChanged(bool fromSelf = false) { if (_RaiseElementsChanged) { if (!fromSelf) { Save(); } RemoteHub.GetBroadcastContext().RefreshControls(); _Watcher.UpdateBoundProperties(Buttons); PropertyChanged.Notify(() => Buttons); } }