Esempio n. 1
0
        private static Hashtable GetModuleUrl()
        {
            Hashtable hashtable = new Hashtable();
            string    str       = string.Empty;

            foreach (Component component in ComponentUtils.GetComponents())
            {
                string str2 = AppRuntime.AppRootPath + "\\bin\\" + component.ComId + ".dll";
                bool   flag = File.Exists(str2);
                if (flag)
                {
                    DllComponent dllComponent = new DllComponent(str2);
                    bool         flag2        = dllComponent.Instance != null;
                    if (flag2)
                    {
                        foreach (Module module in dllComponent.Instance.Modules)
                        {
                            bool flag3 = !hashtable.ContainsKey(module.MdId) && !string.IsNullOrEmpty(module.Url);
                            if (flag3)
                            {
                                hashtable.Add(module.MdId, "~/WIDGET/" + component.ComId + "/" + module.Url);
                            }
                        }
                    }
                }
            }
            return(hashtable);
        }