示例#1
0
 private void SendMessage()
 {
     if (remoteObj != null)
     {
         while (remoteObj.mas1 < 1025)
         {
             remoteObj.adding_sinus(Math.Sin((2 * Math.PI * remoteObj.mas()) / 1024));
             counter++;
             System.Threading.Thread.Sleep(15);
         }
         label2.Text = counter.ToString();
         if (cclient_id == 1)
         {
             for (int i = 0; i < 1025; i++)
             {
                 textBox1.Text += remoteObj.sinus[i].ToString() + Environment.NewLine;
             }
         }
     }
 }