Exemplo n.º 1
0
 public override void AddMenuItems()
 {
     IList<IMenuItem> menuItems = base.MenuItems;
     MenuItem menuItem = new MenuItem()
     {
         Header = "Inject class",
         Command = new DelegateCommand(new Action(this.OnInjectClass))
     };
     menuItems.Add(menuItem);
     IList<IMenuItem> menuItems1 = base.MenuItems;
     MenuItem menuItem1 = new MenuItem()
     {
         Header = "Inject interface",
         Command = new DelegateCommand(new Action(this.OnInterfaceClass))
     };
     menuItems1.Add(menuItem1);
     IList<IMenuItem> menuItems2 = base.MenuItems;
     MenuItem menuItem2 = new MenuItem()
     {
         Header = "Inject struct",
         Command = new DelegateCommand(new Action(this.OnStructClass))
     };
     menuItems2.Add(menuItem2);
     IList<IMenuItem> menuItems3 = base.MenuItems;
     MenuItem menuItem3 = new MenuItem()
     {
         Header = "Inject enum",
         Command = new DelegateCommand(new Action(this.OnEnumClass))
     };
     menuItems3.Add(menuItem3);
 }
 public override void AddMenuItems()
 {
     base.AddMenuItems();
     IList<IMenuItem> menuItems = base.MenuItems;
     MenuItem menuItem = new MenuItem()
     {
         Header = "Inject assembly reference",
         Command = new DelegateCommand(new Action(this.OnAssemblyReferenceClass))
     };
     menuItems.Add(menuItem);
     IList<IMenuItem> menuItems1 = base.MenuItems;
     MenuItem menuItem1 = new MenuItem()
     {
         Header = "Inject resource",
         Command = new DelegateCommand(new Action(this.OnResourceClass))
     };
     menuItems1.Add(menuItem1);
     base.MenuItems.Add(new MenuSeparator());
     IList<IMenuItem> menuItems2 = base.MenuItems;
     MenuItem menuItem2 = new MenuItem()
     {
         Header = "Save as...",
         Command = new DelegateCommand(new Action(this.OnSaveAs))
     };
     menuItems2.Add(menuItem2);
     IList<IMenuItem> menuItems3 = base.MenuItems;
     MenuItem menuItem3 = new MenuItem()
     {
         Header = "Reload",
         Command = new DelegateCommand(new Action(this.OnReaload))
     };
     menuItems3.Add(menuItem3);
     IList<IMenuItem> menuItems4 = base.MenuItems;
     MenuItem menuItem4 = new MenuItem()
     {
         Header = "Rename",
         Command = new DelegateCommand(new Action(this.OnRename))
     };
     menuItems4.Add(menuItem4);
     IList<IMenuItem> menuItems5 = base.MenuItems;
     MenuItem menuItem5 = new MenuItem()
     {
         Header = "Verify",
         Command = new DelegateCommand(new Action(this.OnVerify))
     };
     menuItems5.Add(menuItem5);
 }
Exemplo n.º 3
0
 public void AddRenameDeleteNodes()
 {
     IList<IMenuItem> menuItems = base.MenuItems;
     MenuItem menuItem = new MenuItem()
     {
         Header = "Rename...",
         Command = new DelegateCommand(new Action(this.OnRename))
     };
     menuItems.Add(menuItem);
     IList<IMenuItem> menuItems1 = base.MenuItems;
     MenuItem menuItem1 = new MenuItem()
     {
         Header = "Delete",
         Command = new DelegateCommand(new Action(this.OnDelete))
     };
     menuItems1.Add(menuItem1);
 }
Exemplo n.º 4
0
 public override void AddMenuItems()
 {
     base.AddMenuItems();
     base.MenuItems.Add(new MenuSeparator());
     IList<IMenuItem> menuItems = base.MenuItems;
     MenuItem menuItem = new MenuItem()
     {
         Header = "Inject event",
         Command = new DelegateCommand(new Action(this.InjectEvent))
     };
     menuItems.Add(menuItem);
     IList<IMenuItem> menuItems1 = base.MenuItems;
     MenuItem menuItem1 = new MenuItem()
     {
         Header = "Inject field",
         Command = new DelegateCommand(new Action(this.InjectField))
     };
     menuItems1.Add(menuItem1);
     IList<IMenuItem> menuItems2 = base.MenuItems;
     MenuItem menuItem2 = new MenuItem()
     {
         Header = "Inject method",
         Command = new DelegateCommand(new Action(this.InjectMethod))
     };
     menuItems2.Add(menuItem2);
     IList<IMenuItem> menuItems3 = base.MenuItems;
     MenuItem menuItem3 = new MenuItem()
     {
         Header = "Inject constructor",
         Command = new DelegateCommand(new Action(this.InjectConstructor))
     };
     menuItems3.Add(menuItem3);
     IList<IMenuItem> menuItems4 = base.MenuItems;
     MenuItem menuItem4 = new MenuItem()
     {
         Header = "Inject property",
         Command = new DelegateCommand(new Action(this.InjectProperty))
     };
     menuItems4.Add(menuItem4);
     base.MenuItems.Add(new MenuSeparator());
     base.AddRenameDeleteNodes();
 }