Пример #1
0
        public ActionResult Rules()
        {
            ViewBag.Message = "Home.Rule";

            ConfigData configData = new ConfigData();

            configData.AddConfigItem(new ConfigItem("Rules.", "Rules", "Home"));
            configData.AddConfigItem(new ConfigItem("Devices.", "Devices", "Home"));
            configData.AddConfigItem(new ConfigItem("General.", "General", "Home"));
            configData.AddConfigItem(new ConfigItem("Faarm.", "Farm", "Home"));

            configData.AddRuleOverviewItem(new RuleOverview("RR Movements On The Desk", RuleOverview.RuleState.Enabled));
            configData.AddRuleOverviewItem(new RuleOverview("RR Any movement on the road", RuleOverview.RuleState.Disabled));
            configData.AddRuleOverviewItem(new RuleOverview("RR Any movement in the lab", RuleOverview.RuleState.Enabled));

            return(View(configData));
        }