private void btnSeleccionar_Click(object sender, EventArgs e) { //Refresca los cambios realizados en la tabla de clientes en el formulario de muestra IfrmAgregarEditarInventario FormInterface = this.Owner as IfrmAgregarEditarInventario; if (FormInterface != null) { if (Seleccion == 1) { FormInterface.SeleccionarProveedor1(ProveedorID); } else { FormInterface.SeleccionarProveedor2(ProveedorID); } } this.Close(); }