Beispiel #1
0
        //关闭窗口
        private void CancelButton_Click(object sender, EventArgs e)
        {
            this.Close();
            BoseMusic mainForm = new BoseMusic();

            mainForm.Show();
        }
Beispiel #2
0
        private void SignUpButton_Click(object sender, EventArgs e)
        {
            string name  = myname.Text;
            string pwd   = mypwd.Text;
            string repwd = rpwd.Text;

            if (string.IsNullOrEmpty(name))
            {
                MessageBox.Show("用户名不能为空!");
                return;
            }
            else if (string.IsNullOrEmpty(mypwd.Text))
            {
                MessageBox.Show("密码不能为空!");
                return;
            }
            else if (!mypwd.Text.Equals(rpwd.Text))
            {
                MessageBox.Show("两次输入的密码不一致!");
                return;
            }
            else
            {
                BoseMusic mainForm = new BoseMusic();
                mainForm.Show();
                this.Hide();
            }
        }