コード例 #1
0
        public List <MyMenu> MenusMaster(MyMenu Data)
        {
            DataTable dt = GetMenusValuesFirst();
            // string HTMStr = "";
            string HTMStr = "<li class='nav-item active'><a class='nav-link' href='dashboard.html'><i class='material-icons'>dashboard</i><p>Dashboard</p></a></li>";

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                HTMStr += "<li class='nav-item'><a class='nav-link' data-toggle='collapse' href='#" + dt.Rows[i]["FileName"].ToString() + "'><i class='material-icons'>groups</i>" +
                          "<p>" + dt.Rows[i]["FileName"].ToString() + "<b class='caret'></b></p></a>";

                DataTable _dtMTwo = GetMenusValuesTow(dt.Rows[i]["ID"].ToString());
                if (_dtMTwo.Rows.Count > 0)
                {
                    HTMStr += "<div class='collapse' id='" + dt.Rows[i]["FileName"].ToString() + "'><ul class='nav'>";
                    for (int j = 0; j < _dtMTwo.Rows.Count; j++)
                    {
                        HTMStr += "<li class='nav-item'> " +
                                  "<a class='nav-link' href=" + _dtMTwo.Rows[j]["Url"].ToString() + "><i class='material-icons'>double_arrow</i>" +
                                  "<span class='sidebar-normal'>" + _dtMTwo.Rows[j]["FileName"].ToString() + "</span> " +
                                  "</a></li>";
                    }
                    HTMStr += "</ul></div><li>";
                }
            }
            ListMenu.Add(new MyMenu
            {
                Url = HTMStr
            });
            return(ListMenu);
        }
コード例 #2
0
        public List <MyMenu> mainMenus(MyMenu Data)
        {
            RegistrationManager cm = new RegistrationManager();
            List <MyMenu>       st = cm.MenusMaster(Data);

            return(st);
        }
コード例 #3
0
ファイル: MyMenu.cs プロジェクト: Francy91/SecondProject
    private static void ShowWindow()
    {
        MyMenu windows = EditorWindow.GetWindow(typeof(MyMenu)) as MyMenu;

        Debug.Log("Hello world!");
        windows.initGui();
    }
コード例 #4
0
        public void Start()
        {
            // var items = PrepareMenu();
            ///
            List <IItemOfMenu> item = new List <IItemOfMenu>
            {
                new AddMovie(),
                new ShowMovies(),
                new SortByName(),
                new SortByDuration(),
                new SortByGenre(),
                new SortByYear(),
                new SortByLanguage(),
                new SortByCountry(),
                new SortByRating(),
                new SearchByName(),
                new SearchByGenre(),
                new SearchByYear(),
                new SearchByLanguage(),
                new SearchByCountry(),
                new SearchByRating()
            };

            MyMenu menu = new MyMenu(item);

            menu.Run();
        }
コード例 #5
0
        public void Start()
        {
            // var items = PrepareMenu();
            ///
            List <IItemOfMenu> item = new List <IItemOfMenu>
            {
                new AddStudent(),
                new ShowAllStudents(),
                new AddAuthor(),
                new ShowAllAuthors(),
                new AddBook(),
                new ShowAllBooks(),
                new AddLesson(),
                new ShowAllLessons(),
                new BookRental(),
                new ShowAllBorrowLists(),
                new BooksBorrowedByStudent(),
                new ReturnTheBook(),
                new VisitLessons(),
                new ShowAllVisitedLessons(),
                new LessonsVisitedByStudent(),
                new SerializeBorrowListToJson(),
                new DeSerializeBorrowListFromJson(),
                new SerializeBorrowListToXml(),
                new DeSerializeBorrowListFromXml()
            };

            MyMenu menu = new MyMenu(item);

            menu.Run();
        }
コード例 #6
0
ファイル: Game1.cs プロジェクト: yzwbrian/WindowsGame20101109
        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        protected override void Initialize()
        {
            //设置全屏
            //GraphicsAdapter adapter = graphics.GraphicsDevice.Adapter;
            //graphics.PreferredBackBufferWidth = adapter.CurrentDisplayMode.Width;
            //graphics.PreferredBackBufferHeight = adapter.CurrentDisplayMode.Height;
            //graphics.ToggleFullScreen();
            //初始化二维管理器
            mySpriteManager = new MySpriteManager(this);
            //初始化摄像机
            Matrix projection = Matrix.CreatePerspectiveFieldOfView((float)Math.PI / 4.0f /*视野范围*/, GraphicsDevice.Viewport.AspectRatio /*按屏幕比例转换*/, 1.0f /*最近距离*/, 10000.0f /*最远距离*/);

            myCamera          = new MyCamera(new Vector3(0, 0, 1000), Vector3.Forward, Vector3.Up, projection);
            my3DSpriteManager = new MyModelManager(this, myCamera);
            //初始化天空球
            mySky      = new MySkysphere(this);
            mySky.View = myCamera.View;
            //创建菜单
            myMenu = new MyMenu(this);
            //创建地形
            myTerrain          = new MyTerrain(this, Content.Load <Texture2D>("heightmap"), Content.Load <Texture2D>("GrassTx"), myCamera);
            myTerrain.Scale    = new Vector3(10, 150, 10);
            myTerrain.Position = new Vector3(-600, -200, 1000);
            //创建寻路算法测试
            foundRoad = new FoundRoadTest(this, graphics);

            Components.Add(foundRoad);
            Components.Add(myTerrain);
            Components.Add(mySky);
            Components.Add(mySpriteManager);
            Components.Add(my3DSpriteManager);
            Components.Add(myMenu);
            base.Initialize();
        }
コード例 #7
0
        public ActionResult MainMenu(string menuItem)
        {
            MyMenu menu;

            menu = (MyMenu)Session["Menu"];

            if (menu != null)
            {
                ViewBag.cust = menu.Cust;
                ViewBag.sm   = menu.sm;
            }
            else
            {
                ViewBag.cust    = "";
                menu            = new MyMenu(null, null);
                Session["Menu"] = menu;
            }
            IEnumerable <Menu> SubMenu = null;

            foreach (var mn in menu.NavMenu)
            {
                if (mn.Selected)
                {
                    SubMenu = mn.SubMenus;
                }
            }

            menu.SubMenu = SubMenu;

            return(PartialView(menu));
        }
コード例 #8
0
        private MyMenu ChangeControl(MyMenu menu, int custid, int contractid)
        {
            Contract _cont;

            CustID      = custid;
            cust        = db.Custs.Find(custid);
            contracts   = repo.GetContracts(CustID);
            menu.CustId = CustID;
            menu.Cust   = cust.SmalName;
            if (contractid == 0)
            {
                //Новый вход или котрагент
                _cont = repo.GetContract(CustID);
                if (_cont == null)
                {
                    ContractID = 0;
                }
                else
                {
                    ContractID = _cont.ContractID;
                }

                menu.ContractId = ContractID;
            }
            else
            {
                ContractID      = contractid;
                menu.ContractId = ContractID;
            }

            return(menu);
        }
コード例 #9
0
ファイル: TSMenu.cs プロジェクト: sangchul1011/TizenFX
        public async Task MenuOnRelayout()
        {
            tlog.Debug(tag, $"MenuOnRelayout START");

            var testingTarget = new MyMenu()
            {
                Size            = new Size(100, 200),
                BackgroundColor = Color.Green,
            };

            Assert.IsNotNull(testingTarget, "null handle");
            Assert.IsInstanceOf <Menu>(testingTarget, "Should return Menu instance.");

            View content = new View()
            {
                Size = new Size2D(100, 30),
            };

            testingTarget.MyContent = content;

            NUIApplication.GetDefaultWindow().GetDefaultLayer().Add(testingTarget);

            testingTarget.Size            = new Size(50, 80);
            testingTarget.BackgroundColor = Color.Blue;

            await Task.Delay(200);

            NUIApplication.GetDefaultWindow().GetDefaultLayer().Remove(testingTarget);

            testingTarget.Dispose();
            tlog.Debug(tag, $"MenuOnRelayout END (OK)");
        }
コード例 #10
0
        // GET: /Manage/ChangePassword
        public ActionResult ChangePassword()
        {
            MyMenu menu = (MyMenu)Session["Menu"];

            menu.ChangeSelected(1, 2);
            Session["Menu"] = menu;
            return(View());
        }
コード例 #11
0
    public MyForm()
    {
        this.Text   = "RSS Aggregator";
        this.Width  = 800;
        this.Height = 600;

        mainMenu  = new MyMenu();
        this.Menu = mainMenu;
    }
コード例 #12
0
		public void SetUp ()
		{
			p = new Page ();
			c = new MyMenu ();
			a = new MyMenuAdapter (c);
			p.Controls.Add(c);
			sw = new StringWriter ();
			w = new HtmlTextWriter (sw);
			e = new EventArgs();
		}
コード例 #13
0
ファイル: MenuAdapterTest.cs プロジェクト: raj581/Marvin
 public void SetUp()
 {
     p = new Page();
     c = new MyMenu();
     a = new MyMenuAdapter(c);
     p.Controls.Add(c);
     sw = new StringWriter();
     w  = new HtmlTextWriter(sw);
     e  = new EventArgs();
 }
コード例 #14
0
    public MyMainForm()
    {
        this.Text = "Main Form";
        mainMenu  = new MyMenu();
        this.Menu = mainMenu;

        // Assign our event handler
        mainMenu.miFileOpen.Click  += new System.EventHandler(this.miFileOpen_Click);
        mainMenu.miFileClose.Click += new System.EventHandler(this.miFileClose_Click);
        mainMenu.miFileExit.Click  += new System.EventHandler(this.miFileExit_Click);
    }
コード例 #15
0
        private void ConfigContextMenu(Object sender, StatusEventArgs e)
        {
            MyMenu    menu      = new MyMenu(_dgvMain);
            MenuStrip menuStrip = menu.CreateMainMenu();

            this.Controls.Remove(this.MainMenuStrip);
            this.MainMenuStrip = menuStrip;
            this.Controls.Add(menuStrip);

            _dgvCar.ContextMenuStrip = menu.CreateContextMenu();
        }
コード例 #16
0
    public void disableButtonInMenu()
    {
        MyMenu menu = GetComponentInParent <MyMenu>();

        for (int i = 0; i < menu.buttonObjects.Length; i++)
        {
            if (menu.buttonObjects[i].theButton == gameObject)
            {
                menu.buttonObjects[i].buttonState = MyMenu.MenuItem.ButtonState.Inactive;
            }
        }
    }
コード例 #17
0
        private void notifyIcon1_MouseClick(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Right)
            {
                MyMenu.Show();
            }

            if (e.Button == MouseButtons.Left)
            {
                this.Visible     = true;
                this.WindowState = FormWindowState.Normal;
            }
        }
コード例 #18
0
 public User(string email, string password, string name, int age)
 {
     this.email         = email;
     this.password      = password;
     this.name          = name;
     this.age           = age;
     this.newsFeed      = new Stack <Recipe>();
     this.notifications = new Stack <string>();
     this.MyMenu        = new MyMenu();
     this.followers     = new SimpleList <String>();
     this.rating        = 0;
     this.isChef        = false;
 }
コード例 #19
0
		public void SetUp ()
		{
			p = new Page ();
			c = new MyMenu ();
#if NET_4_0
			c.RenderingMode = MenuRenderingMode.Table;
#endif
			a = new MyMenuAdapter (c);
			p.Controls.Add(c);
			sw = new StringWriter ();
			w = new HtmlTextWriter (sw);
			e = new EventArgs();
		}
コード例 #20
0
        public void SetUp()
        {
            p = new Page();
            c = new MyMenu();
#if NET_4_0
            c.RenderingMode = MenuRenderingMode.Table;
#endif
            a = new MyMenuAdapter(c);
            p.Controls.Add(c);
            sw = new StringWriter();
            w  = new HtmlTextWriter(sw);
            e  = new EventArgs();
        }
コード例 #21
0
    public MyForm()
    {
        this.Text   = "RSS Aggregator";
        this.Width  = 800;
        this.Height = 600;

        mainMenu  = new MyMenu();
        this.Menu = mainMenu;

        // Assign our event handler
        mainMenu.miFileOpen.Click  += new System.EventHandler(this.miFileOpen_Click);
        mainMenu.miFileClose.Click += new System.EventHandler(this.miFileClose_Click);
        mainMenu.miFileExit.Click  += new System.EventHandler(this.miFileExit_Click);
    }
コード例 #22
0
    void OnGUI()
    {
        GUI.skin = IncomeSkin;

        IncomeTab();

        ResourceTab();
        //GUI.Box(new Rect (ScreenWidth - (500.0f / Myscreensize.x) * ScreenWidth, (1.0f / Myscreensize.y) * ScreenHeight, (500.0f / Myscreensize.x) * ScreenWidth, ScreenHeight - (650.0f / Myscreensize.y) * ScreenHeight),"");


        if (Errorbox == true)
        {
            ErrorREctbox = GUI.Window(errorwindowid, ErrorREctbox, Errorpopup, "");
        }



        //	MyMenu=  GUI.Window(3,MyMenu,ResourceTab,"Resources");

//		Debug.Log (GUI.depth.ToString ());
        mouseIsOverMe = false;
        if (MyMenu.Contains(Event.current.mousePosition) || MyMenu2.Contains(Event.current.mousePosition))
        {
            //	Debug.Log("mouseovermainmoney1");
            mouseIsOverMe = true;
        }

        if (showHeroScreen == true)
        {
            if (heroInfoWindow.Contains(Event.current.mousePosition))
            {
                mouseIsOverMe = true;
                //Debug.Log("mouseoverheroscren");
            }

            heroInfoWindow = GUI.Window(0, heroInfoWindow, HeroInformationClick, "");
        }
        if (showGoldScreen == true)
        {
            if (goldBuyWindow.Contains(Event.current.mousePosition))
            {
                mouseIsOverMe = true;
                //Debug.Log("mouseovergoldscren");
            }

            goldBuyWindow = GUI.Window(1, goldBuyWindow, GoldBuyClick, "");
        }

        //	GUI.skin= null;
    }
コード例 #23
0
    //----------------------------------------------------------------------------------------------------
    /// <summary>
    /// ボタンの位置の設定と名前の取得
    /// </summary>
    void Start()
    {
        myMenu   = m_uiBaseObject.GetComponent <MyMenu>();
        m_player = myMenu.MainUiScript.GameScript.CharacterScript.PlayerScript;
        UiReset();
        //名前を取得
        m_button1Name = m_button1.name;
        m_button2Name = m_button2.name;
        m_button3Name = m_button3.name;
        m_button4Name = m_button4.name;

        retireNum          = 0;
        m_maskSelectionNum = -1;
    }
コード例 #24
0
        public void Start()
        {
            // var items = PrepareMenu();
            ///
            List <IItemOfMenu> item = new List <IItemOfMenu>
            {
                new CreateFile(),
                new AddTextToFile(),
                new ReadWordsAndWriteToFile()
            };

            MyMenu menu = new MyMenu(item);

            menu.Run();
        }
コード例 #25
0
        public void Start()
        {
            // var items = PrepareMenu();
            ///
            List <IItemOfMenu> item = new List <IItemOfMenu>
            {
                new SerializeStudents(),
                new DeSerializeStudents(),
                new AddStudent()
            };

            MyMenu menu = new MyMenu(item);

            menu.Run();
        }
コード例 #26
0
        private void LoadMenu()
        {
            //  MyMenu = new ObservableCollection<Menu>();
            //  MyMenu = new ObservableCollection<MenuItemViewModel>();
            this.MyMenu = new ObservableCollection <MenuViewModel>();

            //MyMenu.Add(new Menu
            //{
            //	Icon = "ic_settings.png",
            //	PageName = "MyProfilePage",
            //  Title = "My Profile",
            //});

            //MyMenu.Add(new Menu
            //{
            //	Icon = "ic_exit_to_app.png",
            //	PageName = "LoginPage",
            //	Title = "Close Sesion",
            //});

            //MyMenu.Add(new MenuItemViewModel
            //         {
            //             Icon = "ic_settings.png",
            //             PageName = "MyProfilePage",
            //             Title = "My Profile",
            //         });

            //MyMenu.Add(new MenuItemViewModel
            //{
            //    Icon = "ic_exit_to_app.png",
            //    PageName = "LoginPage",
            //    Title = "Close Sesion",
            //});

            MyMenu.Add(new MenuViewModel
            {
                Icon     = "ic_settings.png",
                PageName = "MyProfilePage",
                Title    = "My Profile",
            });

            MyMenu.Add(new MenuViewModel
            {
                Icon     = "ic_exit_to_app.png",
                PageName = "LoginPage",
                Title    = "Close Sesion",
            });
        }
コード例 #27
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MyShell"/> class.
        /// </summary>
        public MyShell()
        {
            this.defaultMenu      = new MyMenu();
            this.defaultToolBar   = new MyToolBar();
            this.defaultStatusBar = new DefaultStatusBar();
            this.viewContent      = new ContentControl();

            // Bind the content property to the content control's content property
            Binding contentBinding = new Binding(DefaultView.ContentProperty.Name);

            contentBinding.Source = this;
            BindingOperations.SetBinding(this.viewContent, ContentControl.ContentProperty, contentBinding);

            this.Children.Add(this.defaultMenu);
            this.Children.Add(this.defaultToolBar);
            this.Children.Add(this.defaultStatusBar);
            this.Children.Add(this.viewContent);
        }
コード例 #28
0
        public void MenuPostViewLayoutDirectionTypeIsRTL()
        {
            tlog.Debug(tag, $"MenuPostViewLayoutDirectionTypeIsRTL START");

            var testingTarget = new MyMenu()
            {
                Size            = new Size(100, 200),
                BackgroundColor = Color.Green,
                LayoutDirection = ViewLayoutDirectionType.RTL
            };

            Assert.IsNotNull(testingTarget, "Can't create success object Menu");
            Assert.IsInstanceOf <Menu>(testingTarget, "Costruct Menu Fail");

            View anchor = new View()
            {
                Size            = new Size(100, 30),
                BackgroundColor = Color.Cyan
            };

            testingTarget.Anchor = anchor;

            View content = new View()
            {
                Size = new Size2D(100, 30),
            };

            testingTarget.MyContent = content;

            List <MenuItem> items = new List <MenuItem>();
            MenuItem        item  = new MenuItem();

            items.Add(item);
            testingTarget.Items = items;

            testingTarget.LayoutDirection = ViewLayoutDirectionType.RTL;

            testingTarget.HorizontalPositionToAnchor = Menu.RelativePosition.End;
            testingTarget.VerticalPositionToAnchor   = Menu.RelativePosition.End;
            testingTarget.Post();
            testingTarget.Dismiss();

            tlog.Debug(tag, $"MenuPostViewLayoutDirectionTypeIsRTL END (OK)");
        }
コード例 #29
0
ファイル: Controller.cs プロジェクト: korolitskyi/Sudoku
        public Controller(MainWindow mainWindow, Grid MainGrid, ref MyLabel[,] CellsArray, Label timeLabel)
        {
            this.mainWindow = mainWindow;
            this.MainGrid   = MainGrid;
            this.CellsArray = CellsArray;
            this.timeLabel  = timeLabel;
            timer           = new MyTimer(timeLabel);

            contentControl = new TransitioningContentControl()
            {
                Transition = TransitionType.Left, RestartTransitionOnContentChange = true
            };

            mainMenu     = new MyMainMenu(NewGameBtn_Click, ResumeBtn_Click, OpenBtn_Click);
            menu         = new MyMenu(ResumeBtn_Click, SaveBtn_Click, MainMenuBtn_Click);
            finishBanner = new FinishBanner(MainGrid, timer);

            ShowGrid(mainMenu.grid);
        }
コード例 #30
0
        public ActionResult HeadMenu()
        {
            MyMenu menu = (MyMenu)Session["Menu"];

            if (menu != null)
            {
                Contract contract;

                contract = db.Contracts.Find(menu.ContractId);

                ViewBag.cust = menu.Cust;
                ViewBag.sm   = menu.sm;
                if (contract != null)
                {
                    ViewBag.Contract = "Договор № " + contract.Num;
                }
            }
            return(PartialView());
        }
コード例 #31
0
ファイル: MenuDesigner.cs プロジェクト: yashbajra/samples
        } // GetEmptyDesignTimeHtml

        // </snippet5>

        // <snippet4>
        // Generate the design-time markup.
        public override string GetDesignTimeHtml()
        {
            // Make the control more visible in the designer.  If the border
            // style is None or NotSet, change the border to an orange dotted line.
            MyMenu myMenuCtl = (MyMenu)ViewControl;
            string markup    = null;

            // Check if the border style should be changed.
            if (myMenuCtl.BorderStyle == BorderStyle.NotSet ||
                myMenuCtl.BorderStyle == BorderStyle.None)
            {
                BorderStyle oldBorderStyle = myMenuCtl.BorderStyle;
                Color       oldBorderColor = myMenuCtl.BorderColor;

                // Set the design-time properties and catch any exceptions.
                try
                {
                    myMenuCtl.BorderStyle = BorderStyle.Dotted;
                    myMenuCtl.BorderColor = Color.FromArgb(0xFF7F00);

                    // Call the base method to generate the markup.
                    markup = base.GetDesignTimeHtml();
                }
                catch (Exception ex)
                {
                    markup = GetErrorDesignTimeHtml(ex);
                }
                finally
                {
                    // Restore the properties to their original settings.
                    myMenuCtl.BorderStyle = oldBorderStyle;
                    myMenuCtl.BorderColor = oldBorderColor;
                }
            }
            else
            {
                // Call the base method to generate the markup.
                markup = base.GetDesignTimeHtml();
            }

            return(markup);
        } // GetDesignTimeHtml
コード例 #32
0
        public void MenuScrim()
        {
            tlog.Debug(tag, $"MenuScrim START");

            var testingTarget = new MyMenu();

            Assert.IsNotNull(testingTarget, "null handle");
            Assert.IsInstanceOf <Menu>(testingTarget, "Should return Menu instance.");

            View scrim = new View()
            {
                BackgroundColor = Color.Red,
            };

            testingTarget.MyScrim = scrim;
            testingTarget.MyScrim = scrim;

            testingTarget.Dispose();
            tlog.Debug(tag, $"MenuScrim END (OK)");
        }
コード例 #33
0
		static Menu CreateMenuForRenderTests (MyWebControl.Adapters.MenuAdapter adapter, bool compatibilityRendering) 
		{
			Menu menu = new MyMenu (adapter);
#if NET_4_0
			if (compatibilityRendering)
				menu.RenderingCompatibility = new Version (3, 5);
#endif
			menu.ID = "Menu";
			MenuItem R, N1, N2, SN1, SN2, SN3, SN4;
			R = new MenuItem ("one-black", "one-black-value");
			N1 = new MenuItem ("two-black-1", "two-black-1-value");
			N2 = new MenuItem ("two-black-2", "two-black-2-value");
			SN1 = new MenuItem ("three-black-1", "three-black-1-value");
			SN2 = new MenuItem ("three-black-2", "three-black-2-value");
			SN3 = new MenuItem ("three-black-3", "three-black-3-value");
			SN4 = new MenuItem ("three-black-4", "three-black-4-value");
			SN1.ChildItems.Add (new MenuItem ("four-black-1", "four-black-1-value"));
			SN1.ChildItems.Add (new MenuItem ("four-black-2", "four-black-2-value"));
			SN2.ChildItems.Add (new MenuItem ("four-black-3", "four-black-3-value"));
			SN2.ChildItems.Add (new MenuItem ("four-black-4", "four-black-4-value"));
			SN3.ChildItems.Add (new MenuItem ("four-black-5", "four-black-5-value"));
			SN3.ChildItems.Add (new MenuItem ("four-black-6", "four-black-6-value"));
			SN4.ChildItems.Add (new MenuItem ("four-black-7", "four-black-7-value"));
			SN4.ChildItems.Add (new MenuItem ("four-black-8", "four-black-8-value"));
			N1.ChildItems.Add (SN1);
			N1.ChildItems.Add (SN2);
			N2.ChildItems.Add (SN3);
			N2.ChildItems.Add (SN4);
			R.ChildItems.Add (N1);
			R.ChildItems.Add (N2);
			menu.Items.Add (R);
			return menu;
		}
コード例 #34
0
		private static Menu CreateMenuForRenderTests (MyWebControl.Adapters.MenuAdapter adapter) {
			Menu menu = new MyMenu (adapter);
			menu.ID = "Menu";
			MenuItem R, N1, N2, SN1, SN2, SN3, SN4;
			R = new MenuItem ("one-black", "one-black-value");
			N1 = new MenuItem ("two-black-1", "two-black-1-value");
			N2 = new MenuItem ("two-black-2", "two-black-2-value");
			SN1 = new MenuItem ("three-black-1", "three-black-1-value");
			SN2 = new MenuItem ("three-black-2", "three-black-2-value");
			SN3 = new MenuItem ("three-black-3", "three-black-3-value");
			SN4 = new MenuItem ("three-black-4", "three-black-4-value");
			SN1.ChildItems.Add (new MenuItem ("four-black-1", "four-black-1-value"));
			SN1.ChildItems.Add (new MenuItem ("four-black-2", "four-black-2-value"));
			SN2.ChildItems.Add (new MenuItem ("four-black-3", "four-black-3-value"));
			SN2.ChildItems.Add (new MenuItem ("four-black-4", "four-black-4-value"));
			SN3.ChildItems.Add (new MenuItem ("four-black-5", "four-black-5-value"));
			SN3.ChildItems.Add (new MenuItem ("four-black-6", "four-black-6-value"));
			SN4.ChildItems.Add (new MenuItem ("four-black-7", "four-black-7-value"));
			SN4.ChildItems.Add (new MenuItem ("four-black-8", "four-black-8-value"));
			N1.ChildItems.Add (SN1);
			N1.ChildItems.Add (SN2);
			N2.ChildItems.Add (SN3);
			N2.ChildItems.Add (SN4);
			R.ChildItems.Add (N1);
			R.ChildItems.Add (N2);
			menu.Items.Add (R);
			return menu;
		}