コード例 #1
0
ファイル: MainForm.cs プロジェクト: hefangli/MicroDAQ
        void UpdateCycle_WorkStateChanged(JonLibrary.Automatic.RunningState state)
        {
            this.BeginInvoke(new MethodInvoker(delegate
            {
                switch (state)
                {
                case JonLibrary.Automatic.RunningState.Paused:
                    this.tsslUpdate.Text = "P";
                    this.btnPC.Text      = "继续";
                    break;

                case JonLibrary.Automatic.RunningState.Running:
                    this.tsslUpdate.Text = "R";
                    this.btnPC.Enabled   = true;
                    this.btnPC.Text      = "暂停";
                    break;

                case JonLibrary.Automatic.RunningState.Stopped:
                    this.tsslUpdate.Text = "S";
                    break;
                }
            }));
        }
コード例 #2
0
ファイル: OpcGateway.cs プロジェクト: hefangli/MicroDAQ
 void UpdateCycle_WorkStateChanged(JonLibrary.Automatic.RunningState state)
 {
     throw new NotImplementedException();
 }