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(); }
private void button6_Click(object sender, EventArgs e) { Console.WriteLine(mod.GetConsoleInfo(Username, Server)); }