public bool EvalModule(CMSAdminModule mod) {
			if (mod.AreaKey.ToLower() == this.SelectedArea.ToLower()) {
				this.SelectedTab = this.OpenTab;
				this.SelectedAreaName = mod.AreaKey;
				this.SelectedPluginAreaName = mod.PluginName;

				return true;
			}

			return false;
		}
Exemple #2
0
        public List <CMSAdminModuleMenu> GetCurrentAdminModuleControlList()
        {
            HttpRequest request = HttpContext.Current.Request;
            string      pf      = String.Empty;

            CMSAdminModule mod = (from m in AdminModules
                                  where m.AreaKey == PluginAreaPath
                                  select m).FirstOrDefault();

            return((from m in mod.PluginMenus
                    orderby m.Caption, m.SortOrder
                    select m).ToList());
        }
Exemple #3
0
        public CMSAdminModuleMenu GetCurrentAdminModuleControl()
        {
            HttpRequest        request = HttpContext.Current.Request;
            string             pf      = String.Empty;
            CMSAdminModuleMenu cc      = null;

            if (request.QueryString["pf"] != null)
            {
                pf = request.QueryString["pf"].ToString();

                CMSAdminModule mod = (from m in AdminModules
                                      where m.AreaKey == PluginAreaPath
                                      select m).FirstOrDefault();

                cc = (from m in mod.PluginMenus
                      orderby m.Caption, m.SortOrder
                      where m.Action == pf
                      select m).FirstOrDefault();
            }

            return(cc);
        }