private void Archive_Click(object sender, EventArgs e) { try { if (this.destinationForm == null) { this.destinationForm = new DestinationForm(); this.destinationForm.FormClosed += Destination_FormClosed; this.destinationForm.ShowDialog(); } } catch (Exception ex) { Program.DisplayError(ex); } }
private void Destination_FormClosed(object sender, FormClosedEventArgs e) { this.destinationForm = null; }