private void AddVerbMenuItem()
 {
     IMenuCommandService service = (IMenuCommandService) this.serviceProvider.GetService(typeof(IMenuCommandService));
     if (service != null)
     {
         foreach (DesignerVerb verb in service.Verbs)
         {
             DesignerVerbToolStripMenuItem item = new DesignerVerbToolStripMenuItem(verb);
             base.Groups["Verbs"].Items.Add(item);
         }
     }
 }
Exemplo n.º 2
0
        private void AddVerbMenuItem()
        {
            IMenuCommandService service = (IMenuCommandService)this.serviceProvider.GetService(typeof(IMenuCommandService));

            if (service != null)
            {
                foreach (DesignerVerb verb in service.Verbs)
                {
                    DesignerVerbToolStripMenuItem item = new DesignerVerbToolStripMenuItem(verb);
                    base.Groups["Verbs"].Items.Add(item);
                }
            }
        }