コード例 #1
0
 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();
 }
コード例 #2
0
 private void button6_Click(object sender, EventArgs e)
 {
     Console.WriteLine(mod.GetConsoleInfo(Username, Server));
 }