private void FileList_FormClosed(object sender, FormClosedEventArgs e) { try { this.fileListForm = null; this.PopulateControls(); } catch (Exception ex) { Program.DisplayError(ex); } }
private void Discover_Click(object sender, EventArgs e) { try { if (this.fileListForm == null) { this.fileListForm = new FileListForm(); this.fileListForm.FormClosed += FileList_FormClosed; this.fileListForm.ShowDialog(); } } catch (Exception ex) { Program.DisplayError(ex); } }
private void FileList_FormClosed(object sender, FormClosedEventArgs e) { this.fileListForm = null; }