private void OpenChatWindow() { if (this._chatWindow == null) { this._chatWindow = new ChatForm(this,this._stream); this._chatWindow.FormClosed += ChatWindowClosed; this._chatWindow.Show(); } else this._chatWindow.Focus(); }
void ChatWindowClosed(object sender, FormClosedEventArgs e) { this._chatWindow = null; }