Пример #1
0
 public IDllListingModel GetGacDLL()
 {
     SelectedDll  = null;
     AssemblyName = string.Empty;
     SearchTerm   = string.Empty;
     PerformLoadAll();
     if (AllDllListingModels != null && AllDllListingModels.Count > 1)
     {
         DllListingModels = new List <IDllListingModel> {
             AllDllListingModels[1]
         };
     }
     if (DllListingModels != null)
     {
         foreach (var dllListingModel in DllListingModels.Where(model => model.ChildrenCount > 0))
         {
             dllListingModel.IsExpanded = true;
         }
     }
     FilterTooltip = Resources.Languages.Tooltips.ManagePluginSourceFilterGACTooltip;
     FilesTooltip  = Resources.Languages.Tooltips.ManagePluginSourceFilesGACTooltip;
     SelectTooltip = Resources.Languages.Tooltips.ManagePluginSourceSelectGACTooltip;
     _view         = CustomContainer.GetInstancePerRequestType <IChooseDLLView>();
     _view.ShowView(this);
     return(SelectedDll);
 }
Пример #2
0
 public IDllListingModel GetFileSystemDLL()
 {
     SelectedDll  = null;
     AssemblyName = string.Empty;
     SearchTerm   = string.Empty;
     PerformLoadAll();
     if (AllDllListingModels != null && AllDllListingModels.Count > 1)
     {
         DllListingModels = AllDllListingModels[0].Children.ToList();
     }
     FilterTooltip = Resources.Languages.Tooltips.ManagePluginSourceFilterAssemblyTooltip;
     FilesTooltip  = Resources.Languages.Tooltips.ManagePluginSourceFilesAssemblyTooltip;
     SelectTooltip = Resources.Languages.Tooltips.ManagePluginSourceSelectAssemblyTooltip;
     _view         = CustomContainer.GetInstancePerRequestType <IChooseDLLView>();
     _view.ShowView(this);
     return(SelectedDll);
 }