예제 #1
0
        public void SetBusyState(BusyEnum busyState)
        {
            CurrentBusyState = busyState;
            var eventArgs = new BusyChangedEventArgs();

            eventArgs.BusyState = CurrentBusyState;
            OnBusyStateChanged(eventArgs);
        }
예제 #2
0
        protected virtual void OnBusyStateChanged(BusyChangedEventArgs e)
        {
            EventHandler <BusyChangedEventArgs> handler = BusyStateChanged;

            if (handler != null)
            {
                handler(this, e);
            }
        }
예제 #3
0
 private void HandleBusyStateChanged(object sender, BusyChangedEventArgs e)
 {
     IsBusy = e.BusyState == BusyEnum.Busy;
     StateHasChanged();
 }