コード例 #1
0
ファイル: Form1.cs プロジェクト: vertraut/b8stack_vertraut
        private void CRunTimer_Tick(object sender, EventArgs e)
        {
            switch (RState)
            {
            case ERunState.Idle:
                CRunTimer.Stop();
                break;

            case ERunState.Running:
                FrameTick();
                break;
            }
        }
コード例 #2
0
        private void ToIdle()
        {
            RState = ERunState.Idle;
            CRunTimer.Stop();

            CGoButton.Text         = "Go";
            CProgress.Value        = 0;
            CCycleTime.Enabled     = true;
            CStepSize.Enabled      = true;
            CStepDirection.Enabled = true;
            CDryRun.Enabled        = true;
            CFrames.Enabled        = true;

            CaptureCount       = 0;
            CaptureCountTarget = 0;
        }
コード例 #3
0
        private void ToRunning()
        {
            CGoButton.Text         = "Stop";
            CProgress.Value        = 0;
            CProgress.Maximum      = (int)CFrames.Value;
            CRunTimer.Interval     = (int)CCycleTime.Value;
            CCycleTime.Enabled     = false;
            CStepSize.Enabled      = false;
            CStepDirection.Enabled = false;
            CDryRun.Enabled        = false;
            CFrames.Enabled        = false;

            CaptureCount       = 0;
            CaptureCountTarget = (int)CFrames.Value;

            RState = ERunState.Running;
            CRunTimer.Start();
        }