public void SetBusyState(BusyEnum busyState)
        {
            CurrentBusyState = busyState;
            var eventArgs = new BusyChangedEventArgs();

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

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