Exemple #1
0
 public void Print_Log(string log)
 {
     if (this.Log.InvokeRequired)
     {
         SetVoltage printlog = new SetVoltage(Print_Log);
         this.Current.Invoke(printlog, log);
     }
     else
     {
         this.Log.AppendText(String.Format("{0}|{1}\n", DateTime.Now.ToString("hh:mm:ss"), log));
     }
 }
Exemple #2
0
 public void Set_Round(string log)
 {
     if (this.RoundNum.InvokeRequired)
     {
         SetVoltage printlog = new SetVoltage(Set_Round);
         this.RoundNum.Invoke(printlog, log);
     }
     else
     {
         RoundNum.Text = String.Format("Round {0}", testCycle);
     }
 }
Exemple #3
0
        private void Send_Result(string volt)
        {
            string voltage = String.Format("{0:F3}", Convert.ToSingle(volt));

            if (this.Current.InvokeRequired)
            {
                SetVoltage setvotage = new SetVoltage(Send_Result);
                this.Current.Invoke(setvotage, voltage);
            }
            else
            {
                this.Current.Text = voltage;
            }
        }