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; } }
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); } }
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()); } }
public static void showSplash() { frmSplash splashForm = new frmSplash(); splashForm.ShowDialog(); }
//显示启动屏幕 public void ShowSplash() { splash.ShowDialog(); //系统初始化完成,显示主窗体 Application.Run(new frmMain()); }
private void DoSplash() { frmSplash sp = new frmSplash(); sp.ShowDialog(); }