예제 #1
0
        private void btnNuevo_Click(object sender, EventArgs e)
        {
            CRUD_Clientes crud = new CRUD_Clientes();

            crud.Show();
            crud.btnEliminar.Visible  = false;
            crud.btnModificar.Visible = false;
            crud.btnHabEdi.Visible    = false;
        }
예제 #2
0
        private void btnEditarEliminar_Click(object sender, EventArgs e)
        {
            if (clientesDataGridView.Rows.Count == 0)
            {
                MessageBox.Show("¡Aún no hay productos para modificar/eliminar!", "Alerta", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                Clientes customer = new Clientes();
                customer = (Clientes)clientesBindingSource.Current;

                CRUD_Clientes crud = new CRUD_Clientes(customer);
                crud.Show();
                crud.btnGuardar.Visible = false;
                crud.btnNuevo.Visible   = false;
            }
        }