Esempio n. 1
0
 private void Zamanlayici_Tick(object sender, EventArgs e)
 {
     try
     {
         string[] paket;
         string   sonuc = OkumaNesnesi.ReadLine();
         paket      = sonuc.Split('*');
         lblxx.Text = paket[0];
         lblyy.Text = paket[1];
         lblzz.Text = paket[2];
         x          = Convert.ToInt32(paket[0]);
         y          = Convert.ToInt32(paket[1]);
         z          = Convert.ToInt32(paket[2]);
         glControl1.Invalidate();
         OkumaNesnesi.DiscardInBuffer();
     }
     catch
     {
     }
 }