Ejemplo n.º 1
0
		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;
		}
Ejemplo n.º 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());
        }
Ejemplo n.º 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);
        }