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();
        }
Beispiel #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();
        }
        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);
        }
Beispiel #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();
        }
Beispiel #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();
        }
Beispiel #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();
        }
Beispiel #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();
        }
Beispiel #9
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(MDISingleton.instanciaMDI());
 }