Exemple #1
0
        // Token: 0x060000C0 RID: 192 RVA: 0x00004130 File Offset: 0x00002330
        private static FolderSelectDialog.ShowDialogResult ShowXpDialog(IntPtr ownerHandle, string initialDirectory, string title)
        {
            FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog
            {
                Description         = title,
                SelectedPath        = initialDirectory,
                ShowNewFolderButton = false
            };

            FolderSelectDialog.ShowDialogResult result = default(FolderSelectDialog.ShowDialogResult);
            if (folderBrowserDialog.ShowDialog(new FolderSelectDialog.WindowWrapper(ownerHandle)) == DialogResult.OK)
            {
                result.Result   = true;
                result.FileName = folderBrowserDialog.SelectedPath;
            }
            return(result);
        }
Exemple #2
0
 // Token: 0x060000BF RID: 191 RVA: 0x000040D4 File Offset: 0x000022D4
 public bool Show(IntPtr hWndOwner)
 {
     FolderSelectDialog.ShowDialogResult showDialogResult = (Environment.OSVersion.Version.Major >= 6) ? FolderSelectDialog.VistaDialog.Show(hWndOwner, this.InitialDirectory, this.Title) : FolderSelectDialog.ShowXpDialog(hWndOwner, this.InitialDirectory, this.Title);
     this._fileName = showDialogResult.FileName;
     return(showDialogResult.Result);
 }