コード例 #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
ファイル: Main.xaml.cs プロジェクト: ebouwsema/quikpix
        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();
            }
        }