public ContentTypeMenu(NodeMenuCommandParameters parameters, ExplorerToolWindow parent)
 {
     var cmd = new CommonMenuCommandHandler(parent);
     //Export to Xml
     CreateXmlExportMenuItem(cmd, parameters);
     //Items.Add(new Separator());
 }
 private void CreateXmlExportMenuItem(CommonMenuCommandHandler cmd, NodeMenuCommandParameters parameters)
 {
     var serializeNodeCommandBinding = new CommandBinding(MenuCommands.MenuCommand, cmd.SerializeNode);
     var serializeNodeMenuItem = new MenuItem
                                  {
                                      Header = "Serialize item",
                                      Icon = ImageHelper.GetImageFromResource("../resources/file.png"),
                                      Command = MenuCommands.MenuCommand,
                                      CommandParameter = parameters
                                  };
     serializeNodeMenuItem.CommandBindings.Add(serializeNodeCommandBinding);
     Items.Add(serializeNodeMenuItem);
 }
 private void CreateTrashMenuItem(CommonMenuCommandHandler cmd, NodeMenuCommandParameters parameters)
 {
     var trashNodeCommandBinding = new CommandBinding(MenuCommands.MenuCommand, cmd.TrashNode);
     var trashNodeMenuItem = new MenuItem
                                 {
                                     Header = "Move item to Recycle Bin",
                                     Icon = ImageHelper.GetImageFromResource("../resources/sqlEditor.png"),
                                     Command = MenuCommands.MenuCommand,
                                     CommandParameter = parameters
                                 };
     trashNodeMenuItem.CommandBindings.Add(trashNodeCommandBinding);
     Items.Add(trashNodeMenuItem);
 }
 private void CreateRenameMenuItem(CommonMenuCommandHandler cmd, NodeMenuCommandParameters parameters)
 {
     var renameNodeCommandBinding = new CommandBinding(MenuCommands.MenuCommand, cmd.RenameNode);
     var renameNodeMenuItem = new MenuItem
                                  {
                                      Header = "Rename item",
                                      Icon = ImageHelper.GetImageFromResource("../resources/sqlEditor.png"),
                                      Command = MenuCommands.MenuCommand,
                                      CommandParameter = parameters
                                  };
     renameNodeMenuItem.CommandBindings.Add(renameNodeCommandBinding);
     Items.Add(renameNodeMenuItem);
 }
        public GenericMenu(NodeMenuCommandParameters parameters, ExplorerToolWindow parent)
        {
            var cmd = new CommonMenuCommandHandler(parent);

            //Rename
            CreateRenameMenuItem(cmd, parameters);
            //Move
            //CreateMoveMenuItem(cmd, parameters);
            Items.Add(new Separator());

            //Delete
            CreateDeleteMenuItem(cmd, parameters);
            //Trash
            CreateTrashMenuItem(cmd, parameters);

            Items.Add(new Separator());
            //Serialize item to xml
            CreateXmlExportMenuItem(cmd, parameters);
        }
 public MediaTypeMenu(NodeMenuCommandParameters parameters, ExplorerToolWindow parent)
 {
     var cmd = new CommonMenuCommandHandler(parent);
     //Export to Xml
     CreateXmlExportMenuItem(cmd, parameters);
 }
 public ContentTypeRootMenu(NodeMenuCommandParameters parameters, ExplorerToolWindow parent)
 {
     var cmd = new CommonMenuCommandHandler(parent);
     //Import xml
     CreateXmlImportMenuItem(cmd, parameters);
 }