예제 #1
0
        private void frmSubCategoriaRegistro_FormClosing(object sender, FormClosingEventArgs e)
        {
            this.Hide();
            frmSubCategoria frm = new frmSubCategoria();

            frm.Show();
        }
예제 #2
0
        private void subCategoriaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form subCategoria = new frmSubCategoria();

            subCategoria.MdiParent = this;
            subCategoria.Show();
        }
예제 #3
0
        private void dataGridView1_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            DataGridViewRow dr = dataGridView1.SelectedRows[0];

            this.Hide();
            frmSubCategoria frm = new frmSubCategoria();

            frm.Show();
            frm.txtSubCategoriaID.Text           = dr.Cells[0].Value.ToString();
            frm.txtSubCategoria.Text             = dr.Cells[1].Value.ToString();
            frm.txtCategoriaID.Text              = dr.Cells[2].Value.ToString();
            frm.comboBCategoria.Text             = dr.Cells[3].Value.ToString();
            frm.btnDeleteSubCategoria.Enabled    = true;
            frm.btnAtualizarSubCategoria.Enabled = true;
            frm.txtSubCategoria.Focus();
            frm.btnSalvarSubCategoria.Enabled = false;
        }
예제 #4
0
        private void sairToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmCategoria o1 = new frmCategoria();

            o1.Hide();
            frmSubCategoria o2 = new frmSubCategoria();

            o2.Hide();
            frmCadProduto o3 = new frmCadProduto();

            o3.Hide();
            frmRegistroUsuariosDetalhes o4 = new frmRegistroUsuariosDetalhes();

            o4.Hide();
            frmCadUsuario o5 = new frmCadUsuario();

            o5.Hide();
            frmProdutosRegistro2 o9 = new frmProdutosRegistro2();

            o9.Hide();
            frmVendasRegistro o10 = new frmVendasRegistro();

            o10.Hide();
            frmEstoqueInfo o11 = new frmEstoqueInfo();

            o11.Hide();
            frmLogin frm = new frmLogin();

            frm.NivelAcessoComboBox.SelectedIndex = -1;
            frm.txtUsuario.Text      = "";
            frm.txtSenha.Text        = "";
            frm.progressBar1.Visible = false;
            frm.NivelAcessoComboBox.Focus();
            frm.Show();
        }