Esempio n. 1
0
        private Expando CreateMenu(IMenu menu)
        {
            Expando expando = new Expando();

            expando.Anchor       = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            expando.Animate      = true;
            expando.AutoLayout   = true;
            expando.Font         = new System.Drawing.Font("Tahoma", 8.25F);
            expando.Location     = new System.Drawing.Point(12, 12);
            expando.Name         = "N/A";
            expando.Size         = new System.Drawing.Size(179, 60);
            expando.TabIndex     = 0;
            expando.Text         = menu.Text;
            expando.TitleImage   = menu.Image32x32;
            expando.SizeChanged += expando_SizeChanged;
            foreach (IMenuItem item in menu.Items)
            {
                if (item.ShowOnExplorerBar)
                {
                    expando.Items.Add(
                        CreateMenuItem(item)
                        );
                }
            }

            MenuBindings.Add(menu, expando);
            return(expando);
        }
Esempio n. 2
0
 private void DestroyPlugin(IApplicationBlock plugin, TaskPane taskPane)
 {
     foreach (IMenu menu in plugin.Menus)
     {
         DestroyMenu(menu, MenuBindings[menu]);
         MenuBindings.Remove(menu);
     }
     taskPane.Dispose();
     // remove link from explorer bar
 }
Esempio n. 3
0
 private void RegisterShortcuts()
 {
     MenuBindings      = new MenuBindings(this);
     LabyrinthBindings = new LabyrinthBindings(this);
 }