示例#1
0
文件: frmSplash.cs 项目: tonfranco/LR
 void tmr_Tick(object sender, EventArgs e)
 {
     //after 3 sec stop the timer
     tmr.Stop();
     //display mainform
     var login = new frmLogin();
     login.Show();
     //hide this form
     this.Hide();
 }
示例#2
0
        private void frmPrincipal_Load(object sender, EventArgs e)
        {
            var login = new frmLogin();

            MontarMenu();

            var textoStatus = string.Format("Usuário Logado: {0}    |    Nome Usuário: {1}    |    Loja: {2}    |    Responsável Loja: {3}    |    Logado desde: {4}", usuarioLogado.dsLogin, usuarioLogado.nmUsuario, usuarioLogado.nmLoja, usuarioLogado.nmResponsavel, DateTime.Now.ToShortTimeString());
            statusBar.Text = textoStatus;
            idLoja = usuarioLogado.idLoja;

            FormUtil.InstanceFormChild(new frmMonitorPrincipal(idLoja), this, false);

            var monitor = this.MdiChildren.ToList().Where(x => x.Name == "frmMonitorPrincipal").FirstOrDefault();
            monitor.Size = new Size(this.Width - 20, this.Height - 120);
        }