private void chatBtn_Click(object sender, EventArgs e) { if (chat == null || chat.IsDisposed) { chat = new GroupChat(this); } chat.Show(); }
private void InitSetter() { pspSetter = new ThreadSafeSetter(pspSigLable); connSetter = new ThreadSafeSetter(connLable); listSetter = new ThreadSafeSetter(playerList); removeSetter = new ThreadSafeSetter(removeBtn); pingSetter = new ThreadSafeSetter(pingTime); ipSetter = new ThreadSafeSetter(ipLable); chat = new GroupChat(this); }