コード例 #1
0
        public bool sRaiseLoginForm()
        {
            bool result = false;

            try
            {
                FRM_Login vFrm_Login = new FRM_Login();
                vFrm_Login.ShowDialog();

                if (BasicClass.vUsrID > 0)
                {
                    result = true;
                }
                else
                {
                    result = false;
                }
            }
            catch (Exception)
            {
                result = false;
                throw;
            }
            return(result);
        }
コード例 #2
0
 private void FRM_Login_Load(object sender, EventArgs e)
 {
     // TODO: This line of code loads data into the 'studentExamDataSet.User' table. You can move, or remove it, as needed.
     this.userTableAdapter.Fill(this.studentExamDataSet.User);
     TXT_UserName.Select();
     FRM_Login frmLogin = new FRM_Login();
     FRM_Main  frmMain  = new FRM_Main();
     //frmLogin.MdiParent = frmMain;
 }