private void adjuntar_button_Click(object sender, EventArgs e) { if (id_cliente != 0) { Captura_Archivo archivo = new Captura_Archivo(id_cliente, 1); archivo.ShowDialog(); Llenar_Historial_Archivos(); } else { MessageBox.Show("No se tiene cliente seleccionado", "Information", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } //try //{ // if (openFileDialog1.ShowDialog() == DialogResult.OK) // { // } //} //catch (Exception ex) //{ // MessageBox.Show("Error en el archivo", "Information", MessageBoxButtons.OK, MessageBoxIcon.Error); //} }
private void Adjuntar_button_Click(object sender, EventArgs e) { Captura_Archivo archivos = new Captura_Archivo(id_instructor, 2); archivos.ShowDialog(); Llenar_Historial_Archivos(); }