Exemple #1
0
        private void btnLogar_Click(object sender, EventArgs e)
        {
            frmPrincipal frm = new frmPrincipal();

            this.Hide();
            frm.ShowDialog();
            Show();
        }
Exemple #2
0
        public void TrocarTema()
        {
            Tema.btnTema = true;
            this.Close();

            frmPrincipal frm = new frmPrincipal();

            frm.Show();
        }
Exemple #3
0
        public Splash()
        {
            InitializeComponent();
            // Inicia contagem para término da Splash Screen
            Task.Factory.StartNew(() =>
            {
                SendEmail();
                // Espera 5 segundos para iniciar o sistema
                System.Threading.Thread.Sleep(2000);

                Invoke(new Action(() =>
                {
                    // Abre a tela Inicial
                    frmPrincipal frm = new frmPrincipal();
                    Hide();
                    frm.ShowDialog();
                    if (Tema.btnTema == false)
                    {
                        this.Close();
                    }
                }));
            });
        }