示例#1
0
        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();
            }
        }
示例#2
0
        private void button1_Click(object sender, EventArgs e)
        {
            MessageViewer viewer = new MessageViewer();

            viewer.Show();
        }