private void btn_login_Click_1(object sender, EventArgs e) { Client current = Log(); if (current != null) { try { Chat_status chat = new Chat_status(current); chat.Show(); status_info.Text = "All right."; } catch (SocketException) { status_info.Text = "Server is not running."; } } }
public NewChannel(NetworkStream nws, Chat_status cw) { InitializeComponent(); this.streamSender = nws; this.c = cw; }