Example #1
0
        private void btnEntrar_Click(object sender, EventArgs e)
        {
            Form Menu = new TelaMenu();

            Menu.MdiParent       = MDISingleton.instanciaMDI();
            Menu.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            Menu.Dock            = DockStyle.Fill;
            Menu.Show();
        }
Example #2
0
        private void tsbFechar_Click(object sender, EventArgs e)
        {
            Form login = new formLogin();

            login.MdiParent       = MDISingleton.instanciaMDI();
            login.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            login.Dock            = DockStyle.Fill;

            login.Show();
            this.Dispose();
        }
Example #3
0
        private void btnCadastrar_Click(object sender, EventArgs e)
        {
            Form novoUsuario = new TelaNovoCadastro();

            novoUsuario.MdiParent       = MDISingleton.instanciaMDI();
            novoUsuario.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            novoUsuario.Dock            = DockStyle.Fill;
            novoUsuario.Show();

            tsbFechar_Click(sender, e);
        }
Example #4
0
        private void btnSaqueDeposito_Click(object sender, EventArgs e)
        {
            Form SaqDep = new TelaSaqueDeposito();

            SaqDep.MdiParent       = MDISingleton.instanciaMDI();
            SaqDep.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            SaqDep.Dock            = DockStyle.Fill;

            SaqDep.Show();
            this.Dispose();
        }
Example #5
0
        private void btnExtrato_Click(object sender, EventArgs e)
        {
            Form extrato = new TelaExtrato();

            extrato.MdiParent       = MDISingleton.instanciaMDI();
            extrato.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            extrato.Dock            = DockStyle.Fill;

            extrato.Show();
            this.Dispose();
        }
Example #6
0
        private void btnTransferencia_Click(object sender, EventArgs e)
        {
            Form Transferencia = new TelaTransferencia();

            Transferencia.MdiParent       = MDISingleton.instanciaMDI();
            Transferencia.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            Transferencia.Dock            = DockStyle.Fill;

            Transferencia.Show();
            this.Dispose();
        }
Example #7
0
        private void mdiTelaInicial_Load(object sender, EventArgs e)
        {
            Form login = new formLogin();

            login.MdiParent       = MDISingleton.instanciaMDI();
            login.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            login.Dock            = DockStyle.Fill;

            login.Show();

            //new formLogin { MdiParent = MDISingleton.instanciaMDI() }.Show();
        }
        private void tsbSalvar_Click(object sender, EventArgs e)
        {
            Usuario novouser = new Usuario();

            novouser.Nome           = txtNome.Text;
            novouser.Sobrenome      = txtSobrenome.Text;
            novouser.Nacionalidade  = cbNacionalidade.SelectedItem.ToString();
            novouser.DataNascimento = dtNascimento.Value;
            novouser.Documento      = txtDocumento.Text;
            novouser.Nickname       = Text;
            novouser.Senha          = txtSenha.Text;

            novouser.Gravar();


            Form login = new formLogin();

            login.MdiParent       = MDISingleton.instanciaMDI();
            login.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            login.Dock            = DockStyle.Fill;
            login.Show();

            this.Dispose();
        }
Example #9
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(MDISingleton.instanciaMDI());
 }