Ejemplo n.º 1
0
        private void btnConsGeral_Click(object sender, EventArgs e)
        {
            FormGridVenda grid = new FormGridVenda(this);

            grid.MdiParent = this.ParentForm;
            grid.Show();
        }
Ejemplo n.º 2
0
        private void consultaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            bool open = false;

            foreach (Form frm in this.MdiChildren)
            {
                if (frm is FormGridVenda)
                {
                    frm.BringToFront();
                    open = true;
                }
            }
            if (!open)
            {
                gridVen = new FormGridVenda(this);
                gridVen.Show();
            }
        }
Ejemplo n.º 3
0
 //Construtor
 //------------------------------------------------------------------------------
 public FormGridClientes(object frm1, string tipoobj)
 {
     InitializeComponent();
     bd = new BancoDados();
     pf = new PessoaFisica();
     if (tipoobj == "clientes")
     {
         frm = (FormCadClientes)frm1;
     }
     else if (tipoobj == "venda")
     {
         frmven = (FormVendas)frm1;
     }
     else if (tipoobj == "consulta_venda")
     {
         gridVenda = (FormGridVenda)frm1;
     }
     else if (tipoobj == "venda2")
     {
         frmven2 = (FormVendaSimples)frm1;
     }
     txtPesquisaNome.Focus();
 }