private void button1_Click(object sender, EventArgs e) { Chat = new ChatMan(); if (Chat.Login(textBox3.Text, textBox1.Text, textBox2.Text) == null) { this.groupBox1.Visible = false; UpdateChats(); } }
private void button1_Click(object sender, EventArgs e) { Chat = new ChatMan(); var msg = Chat.Login(textBox3.Text, textBox1.Text, textBox2.Text); if (msg == null) { this.groupBox1.Visible = false; UpdateChats(); return; } MessageBox.Show(msg); }