Beispiel #1
0
 private void Timer_1_Tick(object sender, EventArgs e)
 {
     if (count < 20)
     {
         if (clientConnected)
         {
             Brodcast.Abort();
             GameForm gf = new GameForm();
             gf.Show();
             Hide();
             timer_1.Stop();
         }
     }
     else
     {
         Brodcast.Abort();
         VariableClass.Listener.Stop();
         ClientConnect.Join();
         button1.Enabled = true;
         label2.Text     = "Nikt się nie połączył.";
         timer_1.Stop();
     }
 }