コード例 #1
0
        private void btnProdutos_Click(object sender, EventArgs e)
        {
            subMenuProdutos.Visible = true;
            btnProdutos.BackColor   = Color.Blue;

            subMenuVendas.Visible        = false;
            SubMenuCompras.Visible       = false;
            SubMenuSistema.Visible       = false;
            SubMenuConfiguracoes.Visible = false;
            SubMenuFerramentas.Visible   = false;
            SubMenuConsultas.Visible     = false;

            subMenuVendas.Hide();
            SubMenuCompras.Hide();
            SubMenuSistema.Hide();
            SubMenuConfiguracoes.Hide();
            SubMenuFerramentas.Hide();
            SubMenuConsultas.Hide();

            btnVendas.BackColor        = Color.Transparent;
            btnCompras.BackColor       = Color.Transparent;
            btnSistema.BackColor       = Color.Transparent;
            btnFerramentas.BackColor   = Color.Transparent;
            btnConfiguracoes.BackColor = Color.Transparent;
            btnConsultas.BackColor     = Color.Transparent;
        }
コード例 #2
0
        private void btnFornecedores_Click(object sender, EventArgs e)
        {
            SubMenuCompras.Visible = false;
            SubMenuCompras.Hide();
            frmFornecedor fornec = new frmFornecedor();

            fornec.ShowDialog();
        }
コード例 #3
0
        private void btnEntrada_Click(object sender, EventArgs e)
        {
            SubMenuCompras.Visible = false;
            SubMenuCompras.Hide();

            frmEntrada frm = frmEntrada.GetInstancia();

            frm.Show();
            frm.idfuncionario = Convert.ToInt32(this.IdFuncionario);
        }
コード例 #4
0
        private void frmMenuPrincipal_MouseClick(object sender, MouseEventArgs e)
        {
            if (subMenuProdutos.Visible || SubMenuCompras.Visible ||
                subMenuVendas.Visible || SubMenuSistema.Visible ||
                SubMenuConfiguracoes.Visible || SubMenuConsultas.Visible || SubMenuFerramentas.Visible == true)
            {
                subMenuProdutos.Hide();
                subMenuVendas.Hide();
                SubMenuCompras.Hide();
                SubMenuSistema.Hide();
                SubMenuConfiguracoes.Hide();
                SubMenuConsultas.Hide();
                SubMenuFerramentas.Hide();

                btnProdutos.BackColor      = Color.Transparent;
                btnVendas.BackColor        = Color.Transparent;
                btnCompras.BackColor       = Color.Transparent;
                btnSistema.BackColor       = Color.Transparent;
                btnConfiguracoes.BackColor = Color.Transparent;
                btnConsultas.BackColor     = Color.Transparent;
                btnFerramentas.BackColor   = Color.Transparent;
            }
        }