private void CmdBrowse_Click(object sender, EventArgs e) { if (SourceDirectorySelector.ShowDialog() != DialogResult.OK) { return; } mDirectoryPath.Text = SourceDirectorySelector.SelectedPath; }
private void CmdSourceBrowse_Click(object sender, EventArgs e) { if (mBrowsers == BrowserTypes.BothFile || mBrowsers == BrowserTypes.FileDirectory) { if (SourceFileSelector.ShowDialog() != DialogResult.OK) { return; } mSourceFilePath.Text = SourceFileSelector.FileName; } else if (mBrowsers == BrowserTypes.BothDirectory || mBrowsers == BrowserTypes.DirectoryFile) { if (SourceDirectorySelector.ShowDialog() != DialogResult.OK) { return; } mSourceFilePath.Text = SourceDirectorySelector.SelectedPath; } }