private void frmCategoriaRegistro_FormClosing(object sender, FormClosingEventArgs e)
        {
            this.Hide();
            frmCategoria frm = new frmCategoria();

            frm.Show();
        }
Beispiel #2
0
        private void categoriaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form frmCat = new frmCategoria();

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

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

            frm.Show();
            frm.txtID.Text            = dr.Cells[0].Value.ToString();
            frm.txtCategoriaNome.Text = dr.Cells[1].Value.ToString();
            frm.btnDelete.Enabled     = true;
            frm.btnAtualizar.Enabled  = true;
            frm.txtCategoriaNome.Focus();
            frm.btnSalvar.Enabled = false;
        }
Beispiel #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();
        }