public ClientSet(FormChat parent, NetworkStream stream) { this.parent = parent; this.stream = stream; writer = new StreamWriter(stream); reader = new StreamReader(stream); receiveThread = new Thread(new ThreadStart(Receive)); connected = true; }
private void btnStart_Click(object sender, EventArgs e) { if (txtName.Text == "") MessageBox.Show("이름을 입력하세요"); else { FormChat frmChat = new FormChat(this); frmChat.Show(); } }