public void OnButtonClicked(Ookii.Dialogs.Interop.IFileDialogCustomize pfdc, int dwIDCtl)
 {
     if (dwIDCtl == VistaFileDialog.HelpButtonId)
     {
         _dialog.DoHelpRequest();
     }
 }
        private void SetDialogProperties(Ookii.Dialogs.Interop.IFileDialog dialog)
        {
            // Description
            if (!string.IsNullOrEmpty(_description))
            {
                if (_useDescriptionForTitle)
                {
                    dialog.SetTitle(_description);
                }
                else
                {
                    Ookii.Dialogs.Interop.IFileDialogCustomize customize = (Ookii.Dialogs.Interop.IFileDialogCustomize)dialog;
                    customize.AddText(0, _description);
                }
            }

            dialog.SetOptions(NativeMethods.FOS.FOS_PICKFOLDERS | NativeMethods.FOS.FOS_FORCEFILESYSTEM | NativeMethods.FOS.FOS_FILEMUSTEXIST);

            if (!string.IsNullOrEmpty(_selectedPath))
            {
                string parent = Path.GetDirectoryName(_selectedPath);
                if (parent == null || !Directory.Exists(parent))
                {
                    dialog.SetFileName(_selectedPath);
                }
                else
                {
                    string folder = Path.GetFileName(_selectedPath);
                    dialog.SetFolder(NativeMethods.CreateItemFromParsingName(parent));
                    dialog.SetFileName(folder);
                }
            }
        }
 public void OnControlActivating(Ookii.Dialogs.Interop.IFileDialogCustomize pfdc, int dwIDCtl)
 {
 }
 public void OnCheckButtonToggled(Ookii.Dialogs.Interop.IFileDialogCustomize pfdc, int dwIDCtl, bool bChecked)
 {
 }
 public void OnItemSelected(Ookii.Dialogs.Interop.IFileDialogCustomize pfdc, int dwIDCtl, int dwIDItem)
 {
 }