Пример #1
0
        public MenuScreen(string name, UpDownMenu menu, int left, int top, int width, int itemHeight) : base(name)
        {
            this.menu       = menu;
            this.left       = left;
            this.top        = top;
            this.width      = width;
            this.itemHeight = itemHeight;

            createOrUpdate(width, itemHeight);
        }
Пример #2
0
        public void SetMenu(UpDownMenu menu)
        {
            ranges = null;

            foreach (BrailleIOViewRange range in GetViewRanges().Values)
            {
                RemoveViewRange(range.Name);
            }

            this.menu = menu;

            createOrUpdate(width, itemHeight);
        }