private void okButton_Click(object sender, EventArgs e)
        {
            if (null != SetPWDEvent)
            {

                LoginEventArgs args = new LoginEventArgs();
                args.UserName = UserName;
                args.PasssWord = textBox2.Text;

                SetPWDEvent(this, args);
            }
            Close();
        }
Пример #2
0
        //修改密码
        private void passwordtextBox_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (null != SetPWDEvent)
            {

                LoginEventArgs args = new LoginEventArgs();
                args.UserName = usernametextBox.Text;
                args.PasssWord = passwordtextBox.Text;

                SetPWDEvent(this, args);

                isMoseMove = false;
            }
        }
Пример #3
0
        /// <summary>
        /// 传递变量
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ConfirmButton_Click(object sender, EventArgs e)
        {
            //TODO:在此对用户输入内容进行判断并提示

            if(usernametextBox.Text .Equals( ""))
            {
                DialogResult = DialogResult.None;
                MessageBox.Show("用户名不能为空!");
                usernametextBox.Focus();
            }
            else
            {
                 if(null!=LoginEvent)
                 {

                     LoginEventArgs args = new LoginEventArgs();
                     args.UserName = usernametextBox .Text;
                     args.PasssWord = passwordtextBox .Text;

                     LoginEvent(this, args);
                 }
            }
        }