64 references to FileDialogNative
System.Windows.Forms (64)
winforms\Managed\System\WinForms\FileDialog_Vista.cs (46)
58internal abstract FileDialogNative.IFileDialog CreateVistaDialog(); 66FileDialogNative.IFileDialog dialog = CreateVistaDialog(); 84internal virtual void OnBeforeVistaDialog(FileDialogNative.IFileDialog dialog) 94FileDialogNative.IShellItem initialDirectory = GetShellItemForPath(this.InitialDirectory); 113private FileDialogNative.FOS GetOptions() 115const FileDialogNative.FOS BlittableOptions = 116FileDialogNative.FOS.FOS_OVERWRITEPROMPT 117| FileDialogNative.FOS.FOS_NOCHANGEDIR 118| FileDialogNative.FOS.FOS_NOVALIDATE 119| FileDialogNative.FOS.FOS_ALLOWMULTISELECT 120| FileDialogNative.FOS.FOS_PATHMUSTEXIST 121| FileDialogNative.FOS.FOS_FILEMUSTEXIST 122| FileDialogNative.FOS.FOS_CREATEPROMPT 123| FileDialogNative.FOS.FOS_NODEREFERENCELINKS 134FileDialogNative.FOS ret = (FileDialogNative.FOS)options & BlittableOptions; 137ret |= FileDialogNative.FOS.FOS_DEFAULTNOMINIMODE; 146ret |= FileDialogNative.FOS.FOS_FORCEFILESYSTEM; 151internal abstract string[] ProcessVistaFiles(FileDialogNative.IFileDialog dialog); 154private bool HandleVistaFileOk(FileDialogNative.IFileDialog dialog) 219private class VistaDialogEvents : FileDialogNative.IFileDialogEvents 228public int OnFileOk(FileDialogNative.IFileDialog pfd) 233public int OnFolderChanging(FileDialogNative.IFileDialog pfd, FileDialogNative.IShellItem psiFolder) 238public void OnFolderChange(FileDialogNative.IFileDialog pfd) 242public void OnSelectionChange(FileDialogNative.IFileDialog pfd) 246public void OnShareViolation(FileDialogNative.IFileDialog pfd, FileDialogNative.IShellItem psi, out FileDialogNative.FDE_SHAREVIOLATION_RESPONSE pResponse) 248pResponse = FileDialogNative.FDE_SHAREVIOLATION_RESPONSE.FDESVR_DEFAULT; 251public void OnTypeChange(FileDialogNative.IFileDialog pfd) 255public void OnOverwrite(FileDialogNative.IFileDialog pfd, FileDialogNative.IShellItem psi, out FileDialogNative.FDE_OVERWRITE_RESPONSE pResponse) 257pResponse = FileDialogNative.FDE_OVERWRITE_RESPONSE.FDEOR_DEFAULT; 261private void SetFileTypes(FileDialogNative.IFileDialog dialog) 263FileDialogNative.COMDLG_FILTERSPEC[] filterItems = FilterItems; 271private FileDialogNative.COMDLG_FILTERSPEC[] FilterItems 279private static FileDialogNative.COMDLG_FILTERSPEC[] GetFilterItems(string filter) 284List<FileDialogNative.COMDLG_FILTERSPEC> extensions = new List<FileDialogNative.COMDLG_FILTERSPEC>(); 294FileDialogNative.COMDLG_FILTERSPEC extension; 304internal static FileDialogNative.IShellItem GetShellItemForPath(string path) 306FileDialogNative.IShellItem ret = null; 323internal static string GetFilePathFromShellItem(FileDialogNative.IShellItem item) 326item.GetDisplayName(FileDialogNative.SIGDN.SIGDN_DESKTOPABSOLUTEPARSING, out filename);
winforms\Managed\System\WinForms\FileDialogCustomPlace.cs (1)
71internal FileDialogNative.IShellItem GetNativePath()
winforms\Managed\System\WinForms\FileDialogCustomPlacesCollection.cs (2)
17internal void Apply(FileDialogNative.IFileDialog dialog) 30FileDialogNative.IShellItem shellItem = customPlace.GetNativePath();
winforms\Managed\System\WinForms\OpenFileDialog.cs (8)
220internal override string[] ProcessVistaFiles(FileDialogNative.IFileDialog dialog) 222FileDialogNative.IFileOpenDialog openDialog = (FileDialogNative.IFileOpenDialog)dialog; 225FileDialogNative.IShellItemArray results; 232FileDialogNative.IShellItem item; 240FileDialogNative.IShellItem item; 246internal override FileDialogNative.IFileDialog CreateVistaDialog() 248return new FileDialogNative.NativeFileOpenDialog();
winforms\Managed\System\WinForms\SaveFileDialog.cs (6)
217internal override string[] ProcessVistaFiles(FileDialogNative.IFileDialog dialog) 219FileDialogNative.IFileSaveDialog saveDialog = (FileDialogNative.IFileSaveDialog)dialog; 220FileDialogNative.IShellItem item; 224internal override FileDialogNative.IFileDialog CreateVistaDialog() 225{ return new FileDialogNative.NativeFileSaveDialog(); }
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (1)
7653public static extern int SHCreateShellItem(IntPtr pidlParent, IntPtr psfParent, IntPtr pidl, out FileDialogNative.IShellItem ppsi);