private void StartThread()
 {
     new Thread(new ThreadStart(() =>
     {
         while (true)
         {
             if (IsOnline)
             {
                 List <string> tmpConsole = serverModifier.GetConsoleInfo(Username, ServerName);
                 if (tmpConsole != consoleInfo)
                 {
                     consoleInfo = tmpConsole;
                     OnReceiveConsoleInfo?.Invoke(this, new EventArgs());
                 }
             }
         }
     })).Start();
 }
Esempio n. 2
0
 private void button6_Click(object sender, EventArgs e)
 {
     Console.WriteLine(mod.GetConsoleInfo(Username, Server));
 }