Пример #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Autenticacao login = new Autenticacao();

            if (login.ShowDialog() == DialogResult.OK)
            {
                Application.Run(new TelaPrincipal());
            }
        }
Пример #2
0
        private void toolStripButton_TrocarUsuario_Click(object sender, EventArgs e)
        {
            Autenticacao login = new Autenticacao();

            if (login.ShowDialog() == DialogResult.OK)
            {
                Usuario user = new UsuarioDAO().BuscarNome(login.logado);
                loginName = user.Nome;
                toolStripStatusLabel1.Text = "Usuario:  " + loginName;
            }
        }