Exemple #1
0
 private void button13_Click(object sender, EventArgs e)
 {
     if (this.InvokeRequired)
     {
         dbutton13_Click d    = new dbutton13_Click(button13_Click);
         object[]        args = { sender, e };
         this.Invoke(d, args);
     }
     else
     {
         if (AcceptedEmulator != null)
         {
             if (AcceptedEmulator.IsConnected)
             {
                 if (!expressiontb.Equals(""))
                 {
                     //TODO : COMMAND A TROUVER
                     Watch wt = new Watch(Convert.ToString(Watchs.Count + 1), expressiontb.Text);
                     AcceptedEmulator.Send("SETW " + expressiontb.Text + "\n");
                     Watchs.Add(wt);
                 }
             }
         }
     }
 }
Exemple #2
0
        private void button13_Click(object sender, EventArgs e)
        {
            if (this.InvokeRequired)
            {
                dbutton13_Click d = new dbutton13_Click(button13_Click);
                object[] args = { sender, e };
                this.Invoke(d, args);
            }
            else
            {
                if (AcceptedEmulator != null)
                {
                    if (AcceptedEmulator.IsConnected)
                    {

                        if (!expressiontb.Equals(""))
                        {
                            //TODO : COMMAND A TROUVER
                            Watch wt = new Watch(Convert.ToString(Watchs.Count + 1), expressiontb.Text);
                            AcceptedEmulator.Send("SETW " + expressiontb.Text +"\n");
                            Watchs.Add(wt);
                        }

                    }
                }
            }
        }