Пример #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();
 }