private void clientesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmCliente frm = new FrmCliente();

            frm.MdiParent = this;
            frm.Show();
        }
 private void btn_cliente_Click(object sender, EventArgs e)
 {
     FrmCliente cliente = new FrmCliente();
     //this.Hide();
     cliente.ShowDialog();
     //this.Show();
 }
        private void clientesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var formulario = new FrmCliente();

            formulario.MdiParent = this;
            formulario.Show();
        }
Example #4
0
        private void btnCliente_Click(object sender, EventArgs e)
        {
            FrmCliente frm = new FrmCliente();

            frm.MdiParent = this;
            frm.Show();
        }
Example #5
0
        private void btnCliente_Click(object sender, EventArgs e)
        {
            FrmCliente obj = new FrmCliente();

            obj.Show();
            Close();
        }
        private void btnBuscarCliente_Click(object sender, EventArgs e)
        {
            FrmCliente frmCliente = new FrmCliente();

            frmCliente.ShowDialog(this);
            this.txtIdCliente.Text     = frmCliente.Controls["txtId"].Text;
            this.txtNombreCliente.Text = frmCliente.Controls["txtNombre"].Text;
        }
Example #7
0
 private void clientesToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (Cliente == null)
     {
         Cliente             = new FrmCliente();
         Cliente.MdiParent   = this;
         Cliente.FormClosed += new FormClosedEventHandler(CerrarCliente);
         Cliente.Show();
     }
 }
Example #8
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            FrmCliente editarregistro = new FrmCliente();

            editarregistro.FormClosed += new FormClosedEventHandler(ActualizarDatos);
            if (dgvClient.SelectedRows.Count > 0)
            {
                Program.Evento = 1;
                editarregistro.txtCodigoC.Text         = dgvClient.CurrentRow.Cells[0].Value.ToString();
                editarregistro.txtCioRUCC.Text         = dgvClient.CurrentRow.Cells[1].Value.ToString();
                editarregistro.txtRazonSocialC.Text    = dgvClient.CurrentRow.Cells[2].Value.ToString();
                editarregistro.txtDireccionC.Text      = dgvClient.CurrentRow.Cells[3].Value.ToString();
                editarregistro.txtTelefonoC.Text       = dgvClient.CurrentRow.Cells[4].Value.ToString();
                editarregistro.txtCorreoC.Text         = dgvClient.CurrentRow.Cells[5].Value.ToString();
                editarregistro.cbProfesionC.Text       = dgvClient.CurrentRow.Cells[6].Value.ToString();
                editarregistro.cbCiudadC.SelectedValue = dgvClient.CurrentRow.Cells[7].Value.ToString();
                editarregistro.ShowDialog();
            }
            else
            {
                MensajeError("Seleccione la fila a Editar");
            }
        }
        private void button4_Click(object sender, EventArgs e)
        {
            FrmCliente D = new FrmCliente();

            D.Show();
        }
Example #10
0
 private void CerrarCliente(object sender, EventArgs e)
 {
     Cliente = null;
 }
Example #11
0
        private void button3_Click(object sender, EventArgs e)
        {
            FrmCliente FClientes = new FrmCliente();

            FClientes.Show();
        }