示例#1
0
 void mPlugin_TimeChanged()
 {
     InvokeExtension.Invoke(this, () =>
                            timeLabel.Text = mPlugin.ExperimentState == State.Running || mPlugin.ExperimentState == State.Finished ?
                                             string.Format("{0}m {1}s", (int)mPlugin.Time.TotalMinutes, mPlugin.Time.Seconds) :
                                             "Ready to start"
                            );
 }
示例#2
0
        void mPlugin_StateChanged()
        {
            InvokeExtension.Invoke(this, () => {
                stateLabel.Text   = "State: " + mPlugin.ExperimentState.ToString();
                prepCheck.Checked = mPlugin.Prep;

                timeLabel.Text = mPlugin.ExperimentState == State.Running || mPlugin.ExperimentState == State.Finished ?
                                 string.Format("{0}m {1}s", (int)mPlugin.Time.TotalMinutes, mPlugin.Time.Seconds) :
                                 "Ready to start";
            });
        }