/// <summary> /// Override this method to be notified when the /// IsBusy property has changed. /// </summary> /// <param name="args">Event arguments.</param> protected virtual void OnBusyChanged(BusyChangedEventArgs args) { if (_busyChanged != null) { _busyChanged(this, args); } }
void busy_BusyChanged(object sender, BusyChangedEventArgs e) { OnBusyChanged(e); }
void CslaDataProvider_BusyChanged(object sender, BusyChangedEventArgs e) { // only set busy state for entire object. Ignore busy state based // on asynch rules being active if (e.PropertyName == string.Empty) IsBusy = e.Busy; else RefreshCanOperationsValues(); }
void source_BusyChanged(object sender, BusyChangedEventArgs e) { if (e.PropertyName == PropertyName || string.IsNullOrEmpty(e.PropertyName)) { bool busy = e.Busy; BusinessBase bb = Source as BusinessBase; if (bb != null) busy = bb.IsPropertyBusy(PropertyName); if (busy != IsBusy) { IsBusy = busy; UpdateState(); } } }
private void notify_BusyChanged(object sender, BusyChangedEventArgs e) { // If the object is not busy then trigger // the event to unblock the calling thread. if (!_target.IsBusy) _event.Set(); }
public void RaiseBusyChanged(BusyChangedEventArgs args) { if (BusyChanged != null) { BusyChanged(this, args); } }