コード例 #1
0
        private void CmdBrowse_Click(object sender, EventArgs e)
        {
            if (SourceDirectorySelector.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            mDirectoryPath.Text = SourceDirectorySelector.SelectedPath;
        }
コード例 #2
0
        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;
            }
        }