private void button2_Click(object sender, EventArgs e) { UserForm user = new UserForm(); if (user.ShowDialog() == DialogResult.OK) { MessageViewer viewer = new MessageViewer(user.getUser(), user.getPass()); viewer.Show(); } }
private void button1_Click(object sender, EventArgs e) { MessageViewer viewer = new MessageViewer(); viewer.Show(); }