コード例 #1
0
        private void LinkMenuItems()
        {
            // manually set the main info page to redx
            (Pages[0]).LinkToMenuItem(MenuItems[0]);
            MenuItems[0].SetIndicatorIcon(Properties.Resources.redx);

            for (int i = 1; i < MenuItems.Count - 1; i++)
            {
                (Pages[i]).LinkToMenuItem(MenuItems[i]);
                MenuItems[i].SetIndicatorIcon(Properties.Resources.blankred);
            }
            FeaturedImagesMenuItem.SetIndicatorIcon(Properties.Resources.redx);
            //FeaturedImagesMenuItem.UpdateBackground();
        }
コード例 #2
0
        private void InitializeMenuItems()
        {
            MenuItems.Add(ArticleInformationMenuItem);
            MenuItems.Add(RelatedArticlesMenuItem);
            MenuItems.Add(WorkflowMenuItem);
            MenuItems.Add(FeaturedImagesMenuItem);
            MenuItems.Add(TaxonomyMenuItem);

            ArticleInformationMenuItem.SetMenuTitle("Article Information");
            RelatedArticlesMenuItem.SetMenuTitle("Related Articles");
            WorkflowMenuItem.SetMenuTitle("Workflow");
            FeaturedImagesMenuItem.SetMenuTitle("Featured Image");
            TaxonomyMenuItem.SetMenuTitle("Taxonomy");
        }