private void BtnActualizarClientesSunat_Click(object sender, EventArgs e) { try { OpenFileDialog openFileDialog1 = new OpenFileDialog(); openFileDialog1.DefaultExt = "txt"; if (openFileDialog1.ShowDialog() == DialogResult.OK) { Cursor = Cursors.WaitCursor; ObjCL_Venta.InsertarClientesSunat(openFileDialog1.FileName); Cursor = Cursors.Default; MessageBox.Show("Se migro correctamente los clientes", "Aviso", MessageBoxButtons.OK, MessageBoxIcon.Information); } } catch (Exception ex) { Cursor = Cursors.Default; MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }