/// <summary> /// Close window. /// </summary> private void Verification_Closed(object sender, System.EventArgs e) { _sender.CancelCaptureAndCloseReader(this.OnCaptured); ///cuando el form verification es cerrado con this.close(), es decir sin cerrar la aplicacion, el manda ///este parametro al sender que esta en el main y nos servira de switche para hacer la condicion en el main ///que nos ayudara a capturar que paso por este metodo de cerrar ventana y no de salir de la aplicacion y ///volver a cargar el evento load del main _sender.txtReaderSelected.Text = "CerrandoVerificationForm"; }
private void Registration_Closed(object sender, System.EventArgs e) { try { if (!this.image_name.Equals("")) { this.picture.Image.Dispose(); } } catch (Exception error) { Console.WriteLine("Error occured while deleting the Picture: " + error.ToString()); } _sender.CancelCaptureAndCloseReader(this.OnCaptured); }
private void Edit_Data_Closed(object sender, System.EventArgs e) { try { if (!this.imgName.Equals("")) { this.picture.Image.Dispose(); } if (!File.Exists(pathToWriteFile)) { File.Delete(pathToWriteFile); } } catch (Exception error) { Console.WriteLine("Error occured while deleting the Picture: " + error.ToString()); } _sender.CancelCaptureAndCloseReader(this.OnCaptured); }
/// <summary> /// Close window. /// </summary> private void Identification_Closed(object sender, System.EventArgs e) { _sender.CancelCaptureAndCloseReader(this.OnCaptured); }
/// <summary> /// Close window. /// </summary> private void Enrollment_Closed(object sender, System.EventArgs e) { _sender.CancelCaptureAndCloseReader(this.OnCaptured); }
/// <summary> /// Close window. /// </summary> private void Capture_Closed(object sender, EventArgs e) { _sender.CancelCaptureAndCloseReader(this.OnCaptured); }