示例#1
0
 private void CmdBrowse_Click(object sender, EventArgs e)
 {
     if (SourceFileSelector.ShowDialog() != DialogResult.OK)
     {
         return;
     }
     mAttachments.Text += ";" + SourceFileSelector.FileName;
 }
        private void CmdBrowse_Click(object sender, EventArgs e)
        {
            if (SourceFileSelector.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            mFilePath.Text = SourceFileSelector.FileName;
        }
        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;
            }
        }