Пример #1
0
        private void UpdateDisplay(CurrentStates newState, DisplayActions displayAction)
        {
            ShowLoading();
            if (!displayWorker.IsBusy)
            {
                displayState.CurrentState = newState;

                var request = new DisplayRequest()
                {
                    DisplayState       = displayState,
                    CurrentDisplayItem = ItemScroller.CurrentDataItem,
                    DisplayAction      = displayAction
                };

                displayWorker.RunWorkerAsync(request);
            }
            else
            {
                Beep();
            }
        }
Пример #2
0
        private void UpdateDisplay(CurrentStates newState, DisplayActions displayAction)
        {
            ShowLoading();
            if (!displayWorker.IsBusy)
            {
                displayState.CurrentState = newState;

                var request = new DisplayRequest()
                {
                    DisplayState = displayState,
                    CurrentDisplayItem = ItemScroller.CurrentDataItem,
                    DisplayAction = displayAction
                };

                displayWorker.RunWorkerAsync(request);
            }
            else
            {
                Beep();
            }
        }