示例#1
0
        public void RegisterSectionEntryPoints(List <Directory> sections)
        {
            //string assemblyFolder = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
            //throw new Exception(assemblyFolder);
            string    app    = EntryPoints.GetEntryPointsXmlFromSections(sections);
            XmlReader reader = XmlReader.Create(new System.IO.StringReader(app));

            ApplicationContext.RegisterApplication(reader, false, true, "");
        }
示例#2
0
        public void GoToSection(string guid)
        {
            var properties = GetDefaultViewProperties();

            properties["Section"] = EntryPoints.GetSectionFromGuid(sections, guid);

            if (session != null)
            {
                session.GoToPage("resx://PlexWMC/PlexWMC.Resources/Section", properties);
            }
            else
            {
                Debug.WriteLine("GoToSection");
            }
        }