private string GetName(ISearchHandlerEx sh, IWebItem module) { if (sh.GetType().Equals(typeof(EmployeeSearchHendler))) { return(Core.Users.CustomNamingPeople.Substitute <Resources.Resource>("Employees")); } return(module != null ? module.Name : sh.SearchName); }
public static void UnRegistry(ISearchHandlerEx handler) { lock (handlers) { if (handler != null) { handlers.RemoveAll(h => h.GetType() == handler.GetType()); } } }
public static void Registry(ISearchHandlerEx handler) { lock (handlers) { if (handler != null && handlers.All(h => h.GetType() != handler.GetType())) { handlers.Add(handler); } } }
private string GetLogo(ISearchHandlerEx sh, IWebItem module) { if (sh.GetType().Equals(typeof(EmployeeSearchHendler))) { return(WebImageSupplier.GetAbsoluteWebPath("employee.png")); } if (module != null) { return(module.GetIconAbsoluteURL()); } return(WebImageSupplier.GetAbsoluteWebPath(sh.Logo.ImageFileName, sh.Logo.PartID)); }
private string GetLogo(ISearchHandlerEx sh, IWebItem module) { if (sh.GetType().Equals(typeof (EmployeeSearchHendler))) return WebImageSupplier.GetAbsoluteWebPath("employee.png"); if (module != null) return module.GetIconAbsoluteURL(); return WebImageSupplier.GetAbsoluteWebPath(sh.Logo.ImageFileName, sh.Logo.PartID); }
private string GetName(ISearchHandlerEx sh, IWebItem module) { if (sh.GetType().Equals(typeof (EmployeeSearchHendler))) return Core.Users.CustomNamingPeople.Substitute<Resources.Resource>("Employees"); return module != null ? module.Name : sh.SearchName; }