Example #1
0
        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);
        }
Example #2
0
 public static void UnRegistry(ISearchHandlerEx handler)
 {
     lock (handlers)
     {
         if (handler != null)
         {
             handlers.RemoveAll(h => h.GetType() == handler.GetType());
         }
     }
 }
Example #3
0
 public static void Registry(ISearchHandlerEx handler)
 {
     lock (handlers)
     {
         if (handler != null && handlers.All(h => h.GetType() != handler.GetType()))
         {
             handlers.Add(handler);
         }
     }
 }
 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);
         }
     }
 }
Example #6
0
        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));
        }
Example #7
0
        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);
        }
Example #8
0
        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;
        }