コード例 #1
0
 public Wox.Plugin.Result Create(IPublicAPI contextApi)
 {
     return(new Wox.Plugin.Result
     {
         Title = Properties.Resources.wox_plugin_folder_select_folder_first_result_title,
         QueryTextDisplay = Search,
         SubTitle = Properties.Resources.wox_plugin_folder_select_folder_first_result_subtitle,
         IcoPath = Search,
         Score = 500,
         Action = c => _shellAction.ExecuteSanitized(Search, contextApi),
     });
 }
コード例 #2
0
 public Wox.Plugin.Result Create(IPublicAPI contextApi)
 {
     return(new Wox.Plugin.Result
     {
         Title = string.Format(CultureInfo.InvariantCulture, Properties.Resources.wox_plugin_folder_select_folder_first_result_title, new DirectoryInfo(Search).Name),
         QueryTextDisplay = Search,
         SubTitle = Properties.Resources.wox_plugin_folder_select_folder_first_result_subtitle,
         ToolTipData = new ToolTipData(string.Format(CultureInfo.InvariantCulture, Properties.Resources.wox_plugin_folder_select_folder_first_result_title, new DirectoryInfo(Search).Name), Properties.Resources.wox_plugin_folder_select_folder_first_result_subtitle),
         IcoPath = Search,
         Score = 500,
         Action = c => _shellAction.ExecuteSanitized(Search, contextApi),
         ContextData = new SearchResult {
             Type = ResultType.Folder, FullPath = Search
         },
     });
 }