public WeMenu CreateMenu()
        {
            if (Menu == null)
                return null;

            WeMenu menu = new WeMenu();
            foreach (var item in Menu.Buttons)
            {
                MenuButton button = item.CreateObject();
                menu.AddButton(button);
            }
            return menu;
        }
Beispiel #2
0
        public WeMenu CreateMenu()
        {
            if (Menu == null)
            {
                return(null);
            }

            WeMenu menu = new WeMenu();

            foreach (var item in Menu.Buttons)
            {
                MenuButton button = item.CreateObject();
                menu.AddButton(button);
            }
            return(menu);
        }