예제 #1
0
        public FrmMenuAdminContainer(IMenuAdmin menuOption)
        {
            _menuOption = menuOption;
            _options    = _menuOption?.MenuOptionInit();
            var menu = (_menuOption?.UnSelectedAll());

            menu.ForEach(m => {
                if (!m.Text.Equals("CATALOGOS") && !m.Text.Equals("REPORTES"))
                {
                    m.BackColorChanged += SetUnCheckedOption;
                }
                else
                {
                    foreach (ToolStripItem item in ((ToolStripDropDownButton)m).DropDownItems)
                    {
                        item.BackColorChanged += SetUnCheckedSubOption;
                    }
                }
            });
            mainMenu.Items.AddRange(menu.ToArray());
            mainMenu.Items[1].Margin = new Padding(0, 150, 0, 0);
        }
예제 #2
0
 public MenuManager()
 {
     _admin             = new MenuAdmin();
     _review            = new MenuReview();
     _IMenuCacheManager = new MenuCacheManager();
 }