Пример #1
0
        private void btnSignIn_Click(object sender, EventArgs e)
        {
            lblWrongLogin.Visible = false;
            epUserName.Clear();
            epPassword.Clear();

            if (txtUserName.Text.Trim().Length == 0)
            {
                epUserName.SetError(txtUserName, "Kullacı adını giriniz!");
                txtUserName.Focus();
                return;
            }
            if (txtPassword.Text.Trim().Length == 0)
            {
                epPassword.SetError(txtPassword, "Şifre giriniz!");
                txtPassword.Focus();
                return;
            }

            if (UsersHelper.Login(txtUserName.Text, txtPassword.Text).Item1)
            {
                this.Hide();
                int       staffID = UsersHelper.Login(txtUserName.Text, txtPassword.Text).Item2;
                frmSplash f       = new frmSplash(staffID);
                f.ShowDialog();
                //Application.Exit();
            }
            else
            {
                lblWrongLogin.Visible = true;
            }
        }
Пример #2
0
 static void Main()
 {
     try
     {
         frmSplash objfrmSplash = new frmSplash();
         objfrmSplash.ShowDialog();
         clsGlobal.g_objfrmMDIMain = new frmMDIMain();
         Application.Run(clsGlobal.g_objfrmMDIMain);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Logic Navigator", MessageBoxButtons.OK, MessageBoxIcon.Stop);
     }
 }
Пример #3
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            frmSplash ofrmSplash = new frmSplash();

            ofrmSplash.ShowDialog();

            frmLogin oFrmLogin = new frmLogin();

            oFrmLogin.ShowDialog();

            if (Iniciar == true)
            {
                Application.Run(new Principal());
            }
        }
Пример #4
0
 public static void showSplash()
 {
     frmSplash splashForm = new frmSplash();
     splashForm.ShowDialog();
 }
Пример #5
0
 //显示启动屏幕
 public void ShowSplash()
 {
     splash.ShowDialog();
     //系统初始化完成,显示主窗体
     Application.Run(new frmMain());
 }
Пример #6
0
 private void DoSplash()
 {
     frmSplash sp = new frmSplash();
     sp.ShowDialog();
 }