예제 #1
0
 public void DoGUIClear()
 {
     if (this.InvokeRequired)
     {
         GUIClear delegateMethod = new GUIClear(this.DoGUIClear);
         this.Invoke(delegateMethod);
     }
     else
     {
         this.textBox1.Clear();
     }
 }
 public void DoGUIClear()
 {
     if (this.InvokeRequired)
     {
         GUIClear delegateMethod = new GUIClear(this.DoGUIClear);
         this.Invoke(delegateMethod);
     }
     else
     {
         this.lstReadings.Items.Clear();
     }
 }
예제 #3
0
 public void DoGUIClear()
 {
     /* função delegada para limpar os itens da lista de registros */
     if (this.InvokeRequired)
     {
         GUIClear delegateMethod = new GUIClear(this.DoGUIClear);
         this.Invoke(delegateMethod);
     }
     else
     {
         this.lstRegisterValues.Items.Clear();
     }
 }