internal virtual void GetResult(TylorsTech.HandyClasses.WPF.Dialogs.Interop.IFileDialog dialog) { if (!GetOption(NativeMethods.FOS.FOS_ALLOWMULTISELECT)) { _fileNames = new string[1]; TylorsTech.HandyClasses.WPF.Dialogs.Interop.IShellItem result; dialog.GetResult(out result); result.GetDisplayName(NativeMethods.SIGDN.SIGDN_FILESYSPATH, out _fileNames[0]); } }
private void GetResult(TylorsTech.HandyClasses.WPF.Dialogs.Interop.IFileDialog dialog) { TylorsTech.HandyClasses.WPF.Dialogs.Interop.IShellItem item; dialog.GetResult(out item); item.GetDisplayName(NativeMethods.SIGDN.SIGDN_FILESYSPATH, out _selectedPath); }