Пример #1
0
        private void bnLogin_Click(object sender, EventArgs e)
        {
            if (CORE.Login_WinForm(txtUserName.Text, txtPassword.Text) == true)
                {
                    frmMain afrmMain = new frmMain(this);
                    if (CORE.CheckPermit_WinForm(afrmMain) == true)
                    {
                        afrmMain.LoadData();
                        afrmMain.Show();
                        this.Visible = false;
                    }

                }
        }
Пример #2
0
        private void txtPassword_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                if (CORE.Login_WinForm(txtUserName.Text, txtPassword.Text) == true)
                {
                    frmMain afrmMain = new frmMain(this);
                    if (CORE.CheckPermit_WinForm(afrmMain) == true)
                    {
                        afrmMain.LoadData();
                        afrmMain.Show();
                        this.Visible = false;
                    }

                }
            }
        }
Пример #3
0
        private void bnLogin_Click(object sender, EventArgs e)
        {
            progressPanel1.Visible = true;
                if (CORE.Login_WinForm(txtUserName.Text, txtPassword.Text) == true)
                {
                    Program.sys_CurrentUser = (new SystemUsersBO()).Select_ByUsername(txtUserName.Text);
                    frmMain afrmMain = new frmMain(this);
                    if (CORE.CheckPermit_WinForm(afrmMain) == true)
                    {
                        afrmMain.LoadData();
                        //afrmMain.ReloadData();

                        afrmMain.Show();
                        progressPanel1.Visible = false;
                        this.Visible = false;
                    }

                }
        }