Beispiel #1
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();
     }
 }
        void source_BusyChanged(object sender, BusyChangedEventArgs e)
        {
            if (e.PropertyName == Property)
            {
                IsBusy = e.Busy;
            }

            UpdateState();
        }
 private void Model_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
     {
         OnSetProperties();
     }
 }
Beispiel #4
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();
     }
 }
Beispiel #5
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();
                }
            }
        }
 void Child_BusyChanged(object sender, BusyChangedEventArgs e)
 {
     OnBusyChanged(e);
 }