コード例 #1
0
        private void clientesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            bool open = false;

            foreach (Form frm in this.MdiChildren)
            {
                if (frm is FormCadClientes)
                {
                    frm.BringToFront();
                    open = true;
                }
            }
            if (!open)
            {
                frmCli = new FormCadClientes(this);
                frmCli.Show();
            }
        }
コード例 #2
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();
 }
コード例 #3
0
 public FormTipoVenda(FormCadClientes frm)
 {
     InitializeComponent();
     cadCli = frm;
 }