Exemplo n.º 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            FormLogin login = new FormLogin();

            login.ShowDialog();
            if (login.logado)
            {
                Application.Run(new FormPrincipal(login.usuario, login.senha));
            }
        }
Exemplo n.º 2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            CefSettings settings = new CefSettings();

            Cef.Initialize(settings);

            FormLogin formLogin = new FormLogin();

            formLogin.ShowDialog();
            if (formLogin.logado)
            {
                formLogin.Dispose();
                Application.Run(new FormPrincipal());
            }
        }