Esempio n. 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //frmApresentacao frm = new frmApresentacao();
            //frm.ShowDialog();

            frmLoginSistema loginSistema = new frmLoginSistema(); //Instancia o formulario Login

            if (loginSistema.ShowDialog() == DialogResult.OK)     //Condição
            {
                Application.Run(new frmTelaInicial(loginSistema));
            }
        }
Esempio n. 2
0
        private void toolStripMenuItem10_Click(object sender, EventArgs e)
        {
            frmLoginSistema frm = new frmLoginSistema();

            frm.ShowDialog();
        }