コード例 #1
0
        private void bCliente_Click(object sender, EventArgs e)
        {
            ConsultarCliente form5 = new ConsultarCliente(2);

            form5.ShowDialog();

            if (form5.cliente() != null)
            {
                cCliente = (Cliente)form5.cliente();
                eEmpresa = (Empresa)form5.EEmpresa;
            }
            Fill();
        }
コード例 #2
0
        private void BSeleccionarCliente_Click_1(object sender, EventArgs e)
        {
            ConsultarCliente form5 = new ConsultarCliente(2);

            form5.Size     = new Size(Screen.PrimaryScreen.Bounds.Width - 300, Screen.PrimaryScreen.Bounds.Height - (int)(Screen.PrimaryScreen.Bounds.Height * 0.11));
            form5.Location = Data.f1.pPanelBig.Location;
            form5.ShowDialog();


            c        = (Cliente)form5.cliente();
            eEmpresa = (Empresa)form5.EEmpresa;

            if (c != null)
            {
                Fill_Cliente();
            }

            if (eEmpresa != null)
            {
                Fill_Empresa();
            }

            Fill_Anexo();
        }