public void ShowAddPathsDlg() { CheckDisposed(); using (var dlg = new AddPathsDlg()) { if (dlg.ShowDialog(this) == DialogResult.OK) { AddInputFiles(dlg.FileNames); } } }