Ejemplo n.º 1
0
 /// <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);
     }
 }
Ejemplo n.º 2
0
 void busy_BusyChanged(object sender, BusyChangedEventArgs e)
 {
   OnBusyChanged(e);
 }
Ejemplo n.º 3
0
 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();
 }
Ejemplo n.º 4
0
    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();
        }
      }
    }
Ejemplo n.º 5
0
 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();
 }
Ejemplo n.º 6
0
		public void RaiseBusyChanged(BusyChangedEventArgs args)
		{
			if (BusyChanged != null)
			{
				BusyChanged(this, args);
			}
		}