/// <summary>
        /// 登录按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button1_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(textBox1.Text) || string.IsNullOrEmpty(textBox2.Text))
            {
                return;
            }
            string msg;
            string id  = textBox1.Text.Trim();
            string pwd = textBox2.Text.Trim();

            if (ucSwitch1.Checked)
            {
                TeacherBLL bll = new TeacherBLL();
                Boolean    b   = bll.GetTeacherInfo(id, pwd, out msg);
                if (b)
                {
                    //FrmTips.ShowTipsSuccess(this, msg);
                    //fea.Obj = bll.GetTeacher(id);
                    //FrmTeacherMain frmTeacher = new FrmTeacherMain();
                    //this.evtFt += new EventHandler(frmTeacher.SetTxt);
                    //if (this.evtFt!=null)
                    //{
                    //    this.evtFt(this, fea);

                    //    frmTeacher.ShowDialog();

                    //}
                    FrmTips.ShowTipsSuccess(this, msg);
                    this.Tag          = bll.GetTeacher(id);
                    this.DialogResult = DialogResult.OK;
                }
                else
                {
                    FrmTips.ShowTipsError(this, msg);
                }
            }
            else
            {
                StudentBLL bll = new StudentBLL();
                Student    stu = new Student();
                bool       b   = bll.getStudentInfoBySid(id, pwd, out msg, out stu);
                if (b)
                {
                    this.Tag          = stu;
                    this.DialogResult = DialogResult.Yes;
                }
                else
                {
                    FrmTips.ShowTipsError(this, msg);
                }
            }
        }