Ejemplo n.º 1
0
 private void CreateScriptAsDropMenuItem(TriggerMenuCommandsHandler tcmd, MenuCommandParameters menuCommandParameters)
 {
     var scriptCommandBinding = new CommandBinding(IndexMenuCommands.IndexCommand, tcmd.ScriptAsDrop);
     var scriptMenuItem = new MenuItem
     {
         Header = "Script as DROP",
         Icon = ImageHelper.GetImageFromResource("../resources/script_16xLG.png"),
         Command = IndexMenuCommands.IndexCommand,
         CommandParameter = menuCommandParameters
     };
     scriptMenuItem.CommandBindings.Add(scriptCommandBinding);
     Items.Add(scriptMenuItem);
 }
Ejemplo n.º 2
0
 public TriggerContextMenu(MenuCommandParameters menuCommandParameters, ExplorerToolWindow parent)
 {
     var tcmd = new TriggerMenuCommandsHandler(parent);
     CreateScriptAsCreateMenuItem(tcmd, menuCommandParameters);
     CreateScriptAsDropMenuItem(tcmd, menuCommandParameters);
 }