// // GET: /CPAdvertising/ public ActionResult Advertisement() { ViewBag.CurrentMainTab = "Home"; ViewBag.CurrentSubTab = "ControlPanel"; ViewBag.CurrentSuperSubTab = "Advertising"; List <SectionModel> lstSections = new List <SectionModel>(); lstSections.Add(new SectionModel { Id = 1111, SectionName = "Section", LanguageId = CurrentLanguage.Id }); lstSections.AddRange(SectionMap.Map(_repoSection.GetList(x => x.LanguageId == CurrentLanguage.Id).ToList())); ViewBag.Sections = new SelectList(lstSections, "Id", "SectionName"); List <EngineeredToModel> lstEngineered = new List <EngineeredToModel>(); lstEngineered.Add( new EngineeredToModel { Id = 0, EngineeredTo = "Engineered To" } ); lstEngineered.Add( new EngineeredToModel { Id = 1, EngineeredTo = "Visitors Only" } ); lstEngineered.Add( new EngineeredToModel { Id = 2, EngineeredTo = "Leonni Users Only" } ); lstEngineered.Add( new EngineeredToModel { Id = 3, EngineeredTo = "Visitors and Users" } ); ViewBag.Engineered = new SelectList(lstEngineered, "EngineeredTo", "EngineeredTo"); AdvertisementModel objAdvertisement = new AdvertisementModel(); return(View(objAdvertisement)); }
// // GET: /CPFront/ public ActionResult Front() { ViewBag.CurrentMainTab = "Front"; ViewBag.CurrentSubTab = "Profile"; ViewBag.CurrentSuperSubTab = "Name"; VideoLinkModel objVideoLink = new VideoLinkModel(); FrontModel objFront = new FrontModel(); objFront.VideoLinkModel = objVideoLink; List <SectionModel> objSection = new List <SectionModel>(); objSection = SectionMap.Map(_repoSection.GetList(x => x.LanguageId == 1).ToList()); objFront.SectionListModel = objSection; return(View("Front", objFront)); }
public void ReadSectionMap() { log.Debug("Reading Section Map"); sectionMap = new SectionMap(); sectionMap.Protocol = new Section(FileReadUnsignedInts(76, 3)); sectionMap.ADC = new Section(FileReadUnsignedInts(92, 3)); sectionMap.DAC = new Section(FileReadUnsignedInts(108, 3)); sectionMap.Epoch = new Section(FileReadUnsignedInts(124, 3)); sectionMap.ADCPerDAC = new Section(FileReadUnsignedInts(140, 3)); sectionMap.EpochPerDAC = new Section(FileReadUnsignedInts(156, 3)); sectionMap.UserList = new Section(FileReadUnsignedInts(172, 3)); sectionMap.StatsRegion = new Section(FileReadUnsignedInts(188, 3)); sectionMap.Math = new Section(FileReadUnsignedInts(204, 3)); sectionMap.Strings = new Section(FileReadUnsignedInts(220, 3)); sectionMap.Data = new Section(FileReadUnsignedInts(236, 3)); sectionMap.Tag = new Section(FileReadUnsignedInts(252, 3)); sectionMap.Scope = new Section(FileReadUnsignedInts(268, 3)); sectionMap.Delta = new Section(FileReadUnsignedInts(284, 3)); sectionMap.VoiceTag = new Section(FileReadUnsignedInts(300, 3)); sectionMap.SynchArray = new Section(FileReadUnsignedInts(316, 3)); sectionMap.Annotation = new Section(FileReadUnsignedInts(332, 3)); sectionMap.Stats = new Section(FileReadUnsignedInts(348, 3)); }