예제 #1
0
 public InitData(FolderBrowserDialogEx dlg, IntPtr hParent)
 {
     // We need to make copies of these values from the dialog.
     // I tried passing the dlg obj itself in this struct, but Windows will barf after repeated invocations.
     this.Title               = dlg.Title;
     this.InitialPath         = dlg.SelectedPath;
     this.ShowNewFolderButton = dlg.ShowNewFolderButton;
     this.ShowEditbox         = dlg.ShowEditbox;
     this.StartPosition       = dlg.StartPosition;
     this.hParent             = hParent;
 }
예제 #2
0
 public static System.Windows.Forms.DialogResult ShowDialog(this FolderBrowserDialogEx dialog)
 {
     return(dialog.ShowDialog(new WindowWrapper(GetActiveWindow())));
 }