private void btnFolders_Click(object sender, EventArgs e) { if (frmFolderList == null) { frmFolderList = new FRMFolderList(FilesList.GetDirectories()); frmFolderList.FormClosed += new FormClosedEventHandler(frmFolderList_FormClosed); frmFolderList.ShowDialog(); } else frmFolderList.BringToFront(); }
private void frmFolderList_FormClosed(object sender, FormClosedEventArgs e) { frmFolderList = null; }