コード例 #1
0
ファイル: Program.cs プロジェクト: NPAX-FeatherTraQ/HMB
        /// <summary>
        /// This event handler updates the trayicon menu with the current state of the runner.
        /// </summary>
        static void LiveControl_StateChanged(object sender, EventArgs e)
        {
            switch (LiveControl.State)
            {
            case LiveControls.LiveControlState.Paused:
                WorkThread.Pause();
                Runner.Pause();
                break;

            case LiveControls.LiveControlState.Running:
                WorkThread.Resume();
                Runner.Resume();
                break;
            }
        }