예제 #1
0
        private void FillPopupMenu()
        {
            mnuGrid.Items.Clear();
            MenuBuilder mb = new MenuBuilder();

            mb.AddObject(this);
            var menu = GetMenuObject();

            if (menu != null)
            {
                mb.AddObject(menu);
            }
            mb.GetMenuItems(mnuGrid.Items);
        }