예제 #1
0
파일: MenuItem.cs 프로젝트: drme/thw-ui
        /// <summary>
        /// Creates menu item.
        /// </summary>
        /// <param name="engine">ui engine.</param>
        /// <param name="menu">menu it belongs to.</param>
        /// <param name="text">menu item text.</param>
        /// <param name="icon">menu item icon.</param>
        /// <param name="name">menu item name.</param>
        /// <param name="parent">parent menu item.</param>
        /// <param name="topItem">is this top menu item.</param>
        internal MenuItem(UIEngine engine, Menu menu, String text, String icon, String name, MenuItem parent, bool topItem)
            : base("menuItem")
        {
            this.engine = engine;
            this.icon = icon;
            this.text = text;
            this.topItem = topItem;
            this.parent = parent;
            this.menu = menu;
            this.Name = name;

            for (int i = 0; i < 8; i++)
            {
                this.borders[i] = null;
            }
        }
예제 #2
0
파일: MenuWindow.cs 프로젝트: drme/thw-ui
 /// <summary>
 /// Constructs window object.
 /// </summary>
 /// <param name="desktop">desktop it belongs to.</param>
 /// <param name="menu">menu to display in this window.</param>
 internal MenuWindow(Desktop desktop, Menu menu)
     : base(desktop, CreationFlag.FlagsNone, "")
 {
     this.menu = menu;
     this.BackColor = Colors.None;
 }