FormMain.cs
上传用户:hbhltzc
上传日期:2022-06-04
资源大小:1925k
文件大小:166k
源码类别:

xml/soap/webservice

开发平台:

Visual C++

  1. //#define WHIDBEY_MENUS
  2. using System;
  3. using System.Drawing;
  4. using System.Collections.Generic;
  5. using System.ComponentModel;
  6. using System.Windows.Forms;
  7. using System.Xml;
  8. using System.Xml.Xsl;
  9. using System.IO;
  10. using System.Diagnostics;
  11. using System.Text;
  12. using Microsoft.XmlDiffPatch;
  13. using MyContextMenu = System.Windows.Forms.ContextMenu;
  14. using TopLevelMenuItemBaseType = System.Windows.Forms.MenuItem;
  15. namespace XmlNotepad {
  16.     /// <summary>
  17.     /// Summary description for Form1.
  18.     /// </summary>
  19.     public class FormMain : System.Windows.Forms.Form, ISite {
  20.         
  21.         UndoManager undoManager;
  22.         Settings settings;
  23.         string[] args;
  24.         DataFormats.Format urlFormat;
  25.         private System.Windows.Forms.StatusBar statusBar1;       
  26.         private System.Windows.Forms.StatusBarPanel statusBarPanelMessage;
  27.         private System.Windows.Forms.StatusBarPanel statusBarPanelBusy;
  28.         RecentFilesMenu recentFiles;        
  29.         TaskList taskList;
  30.         XsltViewer dynamicHelpViewer;
  31.         bool loading;
  32.         FormSearch search;
  33.         IIntellisenseProvider ip;
  34.         OpenFileDialog od;
  35.         WebProxyService proxyService;
  36.         bool firstActivate = true;
  37.         int batch;
  38.         bool includesExpanded;
  39.         bool helpAvailableHint = true;
  40.         Updater updater;
  41.         System.CodeDom.Compiler.TempFileCollection tempFiles = new System.CodeDom.Compiler.TempFileCollection();
  42.         private ContextMenuStrip contextMenu1;
  43.         private ToolStripSeparator ctxMenuItem20;
  44.         private ToolStripSeparator ctxMenuItem23;
  45.         private ToolStripMenuItem ctxcutToolStripMenuItem;
  46.         private ToolStripMenuItem ctxMenuItemCopy;
  47.         private ToolStripMenuItem ctxMenuItemPaste;
  48.         private ToolStripMenuItem ctxMenuItemExpand;
  49.         private ToolStripMenuItem ctxMenuItemCollapse;
  50.         private MenuStrip menuStrip1;
  51.         private ToolStripMenuItem fileToolStripMenuItem;
  52.         private ToolStripMenuItem newToolStripMenuItem;
  53.         private ToolStripMenuItem openToolStripMenuItem;
  54.         private ToolStripMenuItem reloadToolStripMenuItem;
  55.         private ToolStripSeparator toolStripMenuItem1;
  56.         private ToolStripMenuItem saveToolStripMenuItem;
  57.         private ToolStripMenuItem saveAsToolStripMenuItem;
  58.         private ToolStripSeparator toolStripMenuItem2;
  59.         private ToolStripMenuItem recentFilesToolStripMenuItem;
  60.         private ToolStripSeparator toolStripMenuItem3;
  61.         private ToolStripMenuItem exitToolStripMenuItem;
  62.         private ToolStripMenuItem editToolStripMenuItem;
  63.         private ToolStripMenuItem undoToolStripMenuItem;
  64.         private ToolStripMenuItem redoToolStripMenuItem;
  65.         private ToolStripSeparator toolStripMenuItem4;
  66.         private ToolStripMenuItem cutToolStripMenuItem;
  67.         private ToolStripMenuItem copyToolStripMenuItem;
  68.         private ToolStripMenuItem pasteToolStripMenuItem;
  69.         private ToolStripSeparator toolStripMenuItem5;
  70.         private ToolStripMenuItem deleteToolStripMenuItem;
  71.         private ToolStripMenuItem repeatToolStripMenuItem;
  72.         private ToolStripMenuItem insertToolStripMenuItem;
  73.         private ToolStripMenuItem duplicateToolStripMenuItem;
  74.         private ToolStripSeparator toolStripMenuItem6;
  75.         private ToolStripMenuItem nudgeToolStripMenuItem;
  76.         private ToolStripMenuItem upToolStripMenuItem;
  77.         private ToolStripMenuItem downToolStripMenuItem;
  78.         private ToolStripMenuItem leftToolStripMenuItem;
  79.         private ToolStripMenuItem rightToolStripMenuItem;
  80.         private ToolStripSeparator toolStripMenuItem7;
  81.         private ToolStripMenuItem findToolStripMenuItem;
  82.         private ToolStripMenuItem viewToolStripMenuItem;
  83.         private ToolStripMenuItem expandAllToolStripMenuItem;
  84.         private ToolStripMenuItem collapseAllToolStripMenuItem;
  85.         private ToolStripSeparator toolStripMenuItem8;
  86.         private ToolStripMenuItem statusBarToolStripMenuItem;
  87.         private ToolStripSeparator toolStripMenuItem9;
  88.         private ToolStripMenuItem sourceToolStripMenuItem;
  89.         private ToolStripMenuItem optionsToolStripMenuItem;
  90.         private ToolStripMenuItem helpToolStripMenuItem;
  91.         private ToolStripMenuItem attributeToolStripMenuItem;
  92.         private ToolStripMenuItem textToolStripMenuItem;
  93.         private ToolStripMenuItem commentToolStripMenuItem;
  94.         private ToolStripMenuItem CDATAToolStripMenuItem;
  95.         private ToolStripMenuItem PIToolStripMenuItem;
  96.         private ToolStripMenuItem contentsToolStripMenuItem;
  97.         private ToolStripMenuItem indexToolStripMenuItem;
  98.         private ToolStripSeparator toolStripMenuItem10;
  99.         private ToolStripMenuItem aboutXMLNotepadToolStripMenuItem;
  100.         private ToolStrip toolStrip1;
  101.         private ToolStripButton toolStripButtonNew;
  102.         private ToolStripButton toolStripButtonOpen;
  103.         private ToolStripButton toolStripButtonSave;
  104.         private ToolStripButton toolStripButtonUndo;
  105.         private ToolStripButton toolStripButtonRedo;
  106.         private ToolStripButton toolStripButtonCut;
  107.         private ToolStripButton toolStripButtonCopy;
  108.         private ToolStripButton toolStripButtonPaste;
  109.         private ToolStripButton toolStripButtonDelete;
  110.         private ToolStripSeparator toolStripSeparator1;
  111.         private ToolStripButton toolStripButtonNudgeUp;
  112.         private ToolStripButton toolStripButtonNudgeDown;
  113.         private ToolStripButton toolStripButtonNudgeLeft;
  114.         private ToolStripButton toolStripButtonNudgeRight;
  115.         private HelpProvider helpProvider1;
  116.         private ToolStripMenuItem elementToolStripMenuItem;
  117.         private ToolStripMenuItem elementAfterToolStripMenuItem;
  118.         private ToolStripMenuItem elementBeforeToolStripMenuItem;
  119.         private ToolStripMenuItem elementChildToolStripMenuItem;
  120.         private ToolStripMenuItem attributeBeforeToolStripMenuItem;
  121.         private ToolStripMenuItem attributeAfterToolStripMenuItem;
  122.         private ToolStripMenuItem attributeChildToolStripMenuItem;
  123.         private ToolStripMenuItem textBeforeToolStripMenuItem;
  124.         private ToolStripMenuItem textAfterToolStripMenuItem;
  125.         private ToolStripMenuItem textChildToolStripMenuItem;
  126.         private ToolStripMenuItem commentBeforeToolStripMenuItem;
  127.         private ToolStripMenuItem commentAfterToolStripMenuItem;
  128.         private ToolStripMenuItem commentChildToolStripMenuItem;
  129.         private ToolStripMenuItem cdataBeforeToolStripMenuItem;
  130.         private ToolStripMenuItem cdataAfterToolStripMenuItem;
  131.         private ToolStripMenuItem cdataChildToolStripMenuItem;
  132.         private ToolStripMenuItem PIBeforeToolStripMenuItem;
  133.         private ToolStripMenuItem PIAfterToolStripMenuItem;
  134.         private ToolStripMenuItem PIChildToolStripMenuItem;
  135.         private ToolStripMenuItem ctxElementToolStripMenuItem;
  136.         private ToolStripMenuItem ctxElementBeforeToolStripMenuItem;
  137.         private ToolStripMenuItem ctxElementAfterToolStripMenuItem;
  138.         private ToolStripMenuItem ctxElementChildToolStripMenuItem;
  139.         private ToolStripMenuItem ctxAttributeToolStripMenuItem;
  140.         private ToolStripMenuItem ctxAttributeAfterToolStripMenuItem;
  141.         private ToolStripMenuItem ctxAttributeChildToolStripMenuItem;
  142.         private ToolStripMenuItem ctxTextToolStripMenuItem;
  143.         private ToolStripMenuItem ctxTextBeforeToolStripMenuItem;
  144.         private ToolStripMenuItem ctxTextAfterToolStripMenuItem;
  145.         private ToolStripMenuItem ctxTextChildToolStripMenuItem;
  146.         private ToolStripMenuItem ctxCommentToolStripMenuItem;
  147.         private ToolStripMenuItem ctxCommentBeforeToolStripMenuItem;
  148.         private ToolStripMenuItem ctxCommentAfterToolStripMenuItem;
  149.         private ToolStripMenuItem ctxCommentChildToolStripMenuItem;
  150.         private ToolStripMenuItem ctxCdataToolStripMenuItem;
  151.         private ToolStripMenuItem ctxCdataBeforeToolStripMenuItem;
  152.         private ToolStripMenuItem ctxCdataAfterToolStripMenuItem;
  153.         private ToolStripMenuItem ctxCdataChildToolStripMenuItem;
  154.         private ToolStripMenuItem ctxPIToolStripMenuItem;
  155.         private ToolStripMenuItem ctxPIBeforeToolStripMenuItem;
  156.         private ToolStripMenuItem ctxPIAfterToolStripMenuItem;
  157.         private ToolStripMenuItem ctxPIChildToolStripMenuItem;
  158.         private ToolStripMenuItem windowToolStripMenuItem;
  159.         private ToolStripMenuItem newWindowToolStripMenuItem;
  160.         private ToolStripMenuItem schemasToolStripMenuItem;
  161.         private System.ComponentModel.IContainer components;
  162.         private ToolStripSeparator toolStripMenuItem11;
  163.         private ToolStripMenuItem nextErrorToolStripMenuItem;
  164.         private XmlCache model;
  165.         private PaneResizer resizer;
  166.         private ToolStripSeparator toolStripSeparator2;
  167.         private ToolStripMenuItem compareXMLFilesToolStripMenuItem;
  168.         private NoBorderTabControl tabControlLists;
  169.         private NoBorderTabPage tabPageTaskList;
  170.         private NoBorderTabPage tabPageDynamicHelp;
  171.         private NoBorderTabControl tabControlViews;
  172.         protected NoBorderTabPage tabPageTreeView;
  173.         protected NoBorderTabPage tabPageHtmlView;
  174.         private XmlTreeView xmlTreeView1;
  175.         private XsltViewer xsltViewer;
  176.         private string undoLabel;
  177.         private ToolStripSeparator toolStripSeparator3;
  178.         private ToolStripMenuItem ctxGotoDefinitionToolStripMenuItem;
  179.         private ToolStripMenuItem gotoDefinitionToolStripMenuItem;
  180.         private ToolStripMenuItem expandXIncludesToolStripMenuItem;
  181.         private ToolStripMenuItem exportErrorsToolStripMenuItem;
  182.         private ToolStripMenuItem toolStripMenuItemUpdate;
  183.         private ToolStripSeparator toolStripSeparator4;
  184.         private ComboBox comboBoxLocation;
  185.         // ChangeTo menu
  186.         private ToolStripMenuItem changeToToolStripMenuItem;
  187.         private ToolStripMenuItem changeToElementToolStripMenuItem1;
  188.         private ToolStripMenuItem changeToAttributeToolStripMenuItem1;
  189.         private ToolStripMenuItem changeToTextToolStripMenuItem1;
  190.         private ToolStripMenuItem changeToCDATAToolStripMenuItem1;
  191.         private ToolStripMenuItem changeToCommentToolStripMenuItem1;
  192.         private ToolStripMenuItem changeToProcessingInstructionToolStripMenuItem;
  193.         private ToolStripSeparator toolStripMenuItem12;
  194.         // ChangeTo Context menu...
  195.         private ToolStripMenuItem changeToContextMenuItem;
  196.         private ToolStripMenuItem changeToElementContextMenuItem; 
  197.         private ToolStripMenuItem changeToAttributeContextMenuItem;
  198.         private ToolStripMenuItem changeToTextContextMenuItem;
  199.         private ToolStripMenuItem changeToCDATAContextMenuItem;
  200.         private ToolStripMenuItem changeToCommentContextMenuItem;
  201.         private ToolStripMenuItem changeToProcessingInstructionContextMenuItem;
  202.         private ToolStripMenuItem incrementalSearchToolStripMenuItem;
  203.         private ToolStripMenuItem deleteToolStripMenuItem1;
  204.         private ToolStripMenuItem renameToolStripMenuItem;
  205.         private ToolStripSeparator toolStripMenuItem13;
  206.         private ToolStripMenuItem renameToolStripMenuItem1;
  207.         private ToolStripMenuItem insertToolStripMenuItem1;
  208.         private ToolStripMenuItem duplicateToolStripMenuItem1;
  209.         private ToolStripMenuItem replaceToolStripMenuItem;
  210.         private ToolStripMenuItem ctxAttributeBeforeToolStripMenuItem;
  211.         private string redoLabel;
  212.         public FormMain() {
  213.             this.settings = new Settings();
  214.             this.model = (XmlCache)GetService(typeof(XmlCache));
  215.             this.ip = (XmlIntellisenseProvider)GetService(typeof(XmlIntellisenseProvider));
  216.             //this.model = new XmlCache((ISynchronizeInvoke)this);
  217.             this.undoManager = new UndoManager(1000);
  218.             this.undoManager.StateChanged += new EventHandler(undoManager_StateChanged);
  219.             this.SuspendLayout();
  220.             //
  221.             // Required for Windows Form Designer support
  222.             //
  223.             InitializeComponent();
  224.             // Separated out so we can have virtual CreateTreeView without causing WinForms designer to barf.
  225.             InitializeTreeView();
  226.             this.xmlTreeView1.Dock = System.Windows.Forms.DockStyle.None;
  227.             this.xmlTreeView1.Size = this.tabPageTreeView.ClientSize;
  228.             this.xmlTreeView1.Dock = System.Windows.Forms.DockStyle.Fill;            
  229.             this.undoLabel = this.undoToolStripMenuItem.Text;
  230.             this.redoLabel = this.redoToolStripMenuItem.Text;
  231.             
  232.             this.xsltViewer.SetSite(this);
  233.             this.dynamicHelpViewer.SetSite(this);
  234.             CreateTabControl();
  235.            
  236.             this.ResumeLayout();
  237.             InitializeHelp(this.helpProvider1);
  238.             this.dynamicHelpViewer.DefaultStylesheetResource = "XmlNotepad.DynamicHelp.xslt";
  239.             this.dynamicHelpViewer.ShowFileStrip = false;
  240.             model.FileChanged += new EventHandler(OnFileChanged);
  241.             model.ModelChanged += new EventHandler<ModelChangedEventArgs>(OnModelChanged);
  242.             recentFiles = new RecentFilesMenu(recentFilesToolStripMenuItem, this.comboBoxLocation);
  243.             this.recentFiles.RecentFileSelected += new RecentFileHandler(OnRecentFileSelected);
  244.             //this.resizer.Pane1 = this.xmlTreeView1;
  245.             this.resizer.Pane1 = this.tabControlViews;
  246.             this.resizer.Pane2 = this.tabControlLists;
  247.             this.Controls.SetChildIndex(this.resizer, 0);
  248.             this.taskList.Site = this;
  249.             // populate default settings and provide type info.
  250.             Font f = new Font("Courier New", 10, FontStyle.Regular);
  251.             this.Font = f;
  252.             this.settings["Font"] = f;
  253.             System.Collections.Hashtable colors = new System.Collections.Hashtable();
  254.             colors["Element"] = Color.FromArgb(0, 64, 128);
  255.             colors["Attribute"] = Color.Maroon;
  256.             colors["Text"] = Color.Black;
  257.             colors["Comment"] = Color.Green;
  258.             colors["PI"] = Color.Purple;
  259.             colors["CDATA"] = Color.Gray;
  260.             colors["Background"] = Color.White;
  261.             colors["ContainerBackground"] = Color.AliceBlue;
  262.             this.settings["Colors"] = colors;
  263.             this.settings["FileName"] = new Uri("/",UriKind.RelativeOrAbsolute);
  264.             this.settings["WindowBounds"] = new Rectangle(0,0,0,0);
  265.             this.settings["TaskListSize"] = 0;
  266.             this.settings["TreeViewSize"] = 0;
  267.             this.settings["RecentFiles"] = new Uri[0];
  268.             this.settings["SchemaCache"] = this.model.SchemaCache;
  269.             this.settings["SearchLocation"] = new Point(0, 0);
  270.             this.settings["SearchSize"] = new Size(0, 0);
  271.             this.settings["FindMode"] = false;
  272.             this.settings["SearchXPath"] = false;
  273.             this.settings["SearchWholeWord"] = false;
  274.             this.settings["SearchRegex"] = false;
  275.             this.settings["SearchMatchCase"] = false;
  276.             this.settings["LastUpdateCheck"] = DateTime.Now;
  277.             this.settings["UpdateFrequency"] = TimeSpan.FromDays(20);
  278.             this.settings["UpdateLocation"] = "http://download.microsoft.com/download/6/e/e/6eef2361-33d4-48a2-b52e-5827c7f2ad68/Updates.xml";
  279.             this.settings["UpdateEnabled"] = true;
  280.             this.settings["AutoFormatOnSave"] = true;
  281.             this.settings["IndentLevel"] = 2;
  282.             this.settings["IndentChar"] = IndentChar.Space;
  283.             this.settings["NewLineChars"] = "rn";
  284.             this.settings.Changed += new SettingsEventHandler(settings_Changed);
  285.             // now that we have a font, override the tabControlViews font setting.
  286.             this.xmlTreeView1.Font = this.Font;
  287.             // Event wiring
  288.             this.xmlTreeView1.SetSite(this);
  289.             this.xmlTreeView1.SelectionChanged += new EventHandler(treeView1_SelectionChanged);
  290.             this.xmlTreeView1.ClipboardChanged += new EventHandler(treeView1_ClipboardChanged);
  291.             this.xmlTreeView1.NodeChanged += new EventHandler<NodeChangeEventArgs>(treeView1_NodeChanged);
  292.             this.xmlTreeView1.KeyDown += new KeyEventHandler(treeView1_KeyDown);
  293.             this.taskList.GridKeyDown += new KeyEventHandler(taskList_KeyDown);
  294.             this.toolStripButtonUndo.Enabled = false;
  295.             this.toolStripButtonRedo.Enabled = false;
  296.             this.statusBarToolStripMenuItem.Checked = true;
  297.             this.duplicateToolStripMenuItem.Enabled = false;
  298.             this.findToolStripMenuItem.Enabled = true;
  299.             this.replaceToolStripMenuItem.Enabled = true;
  300.             this.DragOver += new DragEventHandler(Form1_DragOver);
  301.             this.xmlTreeView1.TreeView.DragOver += new DragEventHandler(Form1_DragOver);
  302.             this.DragDrop += new DragEventHandler(Form1_DragDrop);
  303.             this.xmlTreeView1.TreeView.DragDrop += new DragEventHandler(Form1_DragDrop);
  304.             this.AllowDrop = true;
  305.             this.urlFormat = DataFormats.GetFormat("UniformResourceLocatorW");
  306.             ctxcutToolStripMenuItem.Click += new EventHandler(this.cutToolStripMenuItem_Click);
  307.             ctxcutToolStripMenuItem.ImageIndex = this.cutToolStripMenuItem.ImageIndex;
  308.             ctxMenuItemCopy.Click += new EventHandler(this.copyToolStripMenuItem_Click);
  309.             ctxMenuItemCopy.ImageIndex = copyToolStripMenuItem.ImageIndex;
  310.             ctxMenuItemPaste.Click += new EventHandler(this.pasteToolStripMenuItem_Click);
  311.             ctxMenuItemPaste.ImageIndex = pasteToolStripMenuItem.ImageIndex;
  312.             ctxMenuItemExpand.Click += new EventHandler(this.expandToolStripMenuItem_Click);
  313.             ctxMenuItemCollapse.Click += new EventHandler(this.collapseToolStripMenuItem_Click);
  314.             this.toolStripMenuItemUpdate.Visible = false;
  315.             this.toolStripMenuItemUpdate.Click += new EventHandler(toolStripMenuItemUpdate_Click);
  316.             // now set in virtual InitializeHelp()
  317.             // 
  318.             // helpProvider1
  319.             // 
  320.             //this.helpProvider1.HelpNamespace = Application.StartupPath + "\Help.chm";
  321.             //this.helpProvider1.Site = this;
  322.             this.ContextMenuStrip = this.contextMenu1;            
  323.             New();
  324.         }
  325.         public FormMain(string[] args)
  326.             : this() {
  327.             this.args = args;
  328.         }
  329.         public XmlCache Model {
  330.             get { return model; }
  331.             set { model = value; }
  332.         }
  333.         public PaneResizer Resizer {
  334.             get { return resizer; }
  335.             set { resizer = value; }
  336.         }
  337.         public NoBorderTabControl TabControlLists {
  338.             get { return tabControlLists; }
  339.             set { tabControlLists = value; }
  340.         }
  341.         public NoBorderTabControl TabControlViews {
  342.             get { return this.tabControlViews; }
  343.             set { tabControlViews = value; }
  344.         }
  345.         public XmlTreeView XmlTreeView {
  346.             get { return xmlTreeView1; }
  347.             set { xmlTreeView1 = value; }
  348.         }
  349.         void InitializeTreeView() {
  350.             // Now remove the WinForm designer generated tree view and call the virtual CreateTreeView method
  351.             // so a subclass of this form can plug in their own tree view.
  352.             this.tabPageTreeView.Controls.Remove(this.xmlTreeView1);
  353.             this.xmlTreeView1 = CreateTreeView();
  354.             // 
  355.             // xmlTreeView1
  356.             // 
  357.             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormMain));
  358.             resources.ApplyResources(this.xmlTreeView1, "xmlTreeView1");
  359.             this.xmlTreeView1.ResizerPosition = 200;
  360.             this.xmlTreeView1.BackColor = System.Drawing.Color.White;
  361.             this.xmlTreeView1.Location = new System.Drawing.Point(0, 52);
  362.             this.xmlTreeView1.Name = "xmlTreeView1";
  363.             this.xmlTreeView1.SelectedNode = null;
  364.             this.xmlTreeView1.TabIndex = 1;
  365.             this.tabPageTreeView.Controls.Add(this.xmlTreeView1);
  366.             this.tabPageTreeView.Controls.SetChildIndex(this.xmlTreeView1, 0);
  367.         }
  368.         protected virtual void InitializeHelp(HelpProvider hp) {
  369.             hp.SetHelpNavigator(this, HelpNavigator.TableOfContents);
  370.             hp.Site = this;
  371.             // in case subclass has already set HelpNamespace
  372.             if (string.IsNullOrEmpty(hp.HelpNamespace))
  373.             {
  374.                 string path = Application.StartupPath + "\Help.chm";
  375.                 if (!File.Exists(path)) {
  376.                     // Perhaps we're running unit tests, in which case help is not in the startup path.
  377.                     Uri baseUri = new Uri(this.GetType().Assembly.Location);
  378.                     Uri resolved = new Uri(baseUri, @"......HelpHelp.chm");
  379.                     path = resolved.LocalPath;
  380.                 }
  381.                 hp.HelpNamespace = path;
  382.             }
  383.         }
  384.         void FocusNextPanel(bool reverse) {
  385.             Control[] panels = new Control[] { this.xmlTreeView1.TreeView, this.xmlTreeView1.NodeTextView, this.tabControlLists.SelectedTab.Controls[0] };
  386.             for (int i = 0; i < panels.Length; i++) {
  387.                 Control c = panels[i];
  388.                 if (c.ContainsFocus) {
  389.                     int j = i + 1;
  390.                     if (reverse) {
  391.                         j = i - 1;
  392.                         if (j < 0) j = panels.Length - 1;
  393.                     } else if (j >= panels.Length) {
  394.                         j = 0;
  395.                     }
  396.                     SelectTreeView();
  397.                     panels[j].Focus();
  398.                     break;
  399.                 }
  400.             }            
  401.         }
  402.         void treeView1_KeyDown(object sender, KeyEventArgs e) {
  403.             // Note if e.SuppressKeyPress is true, then this event is bubbling up from
  404.             // the TextEditorOverlay - so we have to be careful not to interfere with
  405.             // intellisense editing here unless we really want to.  Turns out the following
  406.             // keystrokes all want to interrupt intellisense. 
  407.             if (e.Handled) return;
  408.             switch (e.KeyCode) {
  409.                 case Keys.Space:
  410.                     if ((e.Modifiers & Keys.Control) == Keys.Control) {
  411.                         this.xmlTreeView1.Commit();
  412.                         Rectangle r = this.xmlTreeView1.TreeView.Bounds;
  413.                         XmlTreeNode node = this.xmlTreeView1.SelectedNode;
  414.                         if (node != null) {
  415.                             r = node.LabelBounds;
  416.                             r.Offset(this.xmlTreeView1.TreeView.ScrollPosition);
  417.                         }
  418.                         r = this.xmlTreeView1.RectangleToScreen(r);
  419.                         this.contextMenu1.Show(r.Left + (r.Width / 2), r.Top + (r.Height / 2));
  420.                     }
  421.                     break;
  422.                 case Keys.F3:
  423.                     if (this.search != null) {
  424.                         this.xmlTreeView1.Commit();
  425.                         this.search.FindAgain(e.Shift);
  426.                         e.Handled = true;
  427.                     }
  428.                     break;
  429.                 case Keys.F6:
  430.                     FocusNextPanel((e.Modifiers & Keys.Shift) != 0);
  431.                     e.Handled = true;
  432.                     break;
  433.             }
  434.         }
  435.         void taskList_KeyDown(object sender, KeyEventArgs e) {
  436.             switch (e.KeyCode) {
  437.                 case Keys.F6:
  438.                     FocusNextPanel((e.Modifiers & Keys.Shift) != 0);
  439.                     break;
  440.                 case Keys.Enter:
  441.                     taskList.NavigateSelectedError();
  442.                     break;
  443.             }
  444.         }
  445.         protected override void OnLoad(EventArgs e) {
  446.             this.updater = new Updater(this.settings);
  447.             this.updater.Title = this.Caption;
  448.             this.updater.UpdateRequired += new EventHandler(OnUpdateRequired);
  449.             LoadConfig();
  450.             base.OnLoad(e);
  451.         }
  452.         void OnUpdateRequired(object sender, EventArgs e) {
  453.             ISynchronizeInvoke si = (ISynchronizeInvoke)this;
  454.             if (si.InvokeRequired) {
  455.                 // get on the right thread.
  456.                 si.Invoke(new EventHandler(OnUpdateRequired), new object[1] { e });
  457.                 return;
  458.             }
  459.             this.toolStripMenuItemUpdate.Visible = true;
  460.         }
  461.         
  462.         void toolStripMenuItemUpdate_Click(object sender, EventArgs e) {         
  463.             if (MessageBox.Show(string.Format(SR.UpdateAvailable, this.caption, updater.Version), 
  464.                 SR.UpdateAvailableCaption, MessageBoxButtons.YesNo,
  465.                 MessageBoxIcon.Exclamation) == DialogResult.Yes) {
  466.                 Utilities.OpenUrl(this.Handle, this.updater.DownloadPage);
  467.             }
  468.         }
  469.         protected override void OnClosing(CancelEventArgs e) {
  470.             this.xmlTreeView1.Commit();
  471.             if (this.model.Dirty){
  472.                 SelectTreeView();
  473.                 DialogResult rc = MessageBox.Show(this, SR.SaveChangesPrompt, SR.SaveChangesCaption, 
  474.                     MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation);
  475.                 if (rc == DialogResult.Yes){
  476.                     this.Save();
  477.                 } else if (rc == DialogResult.Cancel){
  478.                     e.Cancel = true;
  479.                     return;
  480.                 }
  481.             }
  482.             SaveConfig();
  483.             base.OnClosing (e);
  484.         }
  485.         protected override void OnClosed(EventArgs e) {
  486.             this.xmlTreeView1.Close();
  487.             base.OnClosed(e);
  488.             CleanupTempFiles();
  489.             if (this.updater != null) {
  490.                 this.updater.Dispose();
  491.             }
  492.         }
  493.         protected override void OnLayout(LayoutEventArgs levent) {
  494.             Size s = this.ClientSize;
  495.             int w = s.Width;
  496.             int h = s.Height;
  497.             int top = this.menuStrip1.Height;
  498.             this.toolStrip1.Size = new Size(w, 24);
  499.             top += 24;
  500.             int sbHeight = 0;
  501.             if (this.statusBar1.Visible) {
  502.                 sbHeight = this.statusBar1.Height;
  503.                 this.statusBar1.Size = new Size(w, sbHeight);
  504.             }
  505.             this.tabControlViews.Location = new Point(0, top);
  506.             this.tabControlViews.Size = new Size(w, h - top - sbHeight - this.tabControlLists.Height - this.resizer.Height);
  507.             //this.tabControlViews.Padding = new Point(0, 0);
  508.             //this.xmlTreeView1.Location = new Point(0, top);
  509.             //this.xmlTreeView1.Size = new Size(w, h - top - sbHeight - this.tabControlViews.Height);
  510.             this.resizer.Size = new Size(w, this.resizer.Height);
  511.             this.resizer.Location = new Point(0, top + this.tabControlViews.Height);
  512.             //this.taskList.Size = new Size(w, this.taskList.Height);
  513.             //this.taskList.Location = new Point(0, top + this.xmlTreeView1.Height + this.resizer.Height);
  514.             this.tabControlLists.Size = new Size(w, this.tabControlLists.Height);
  515.             this.tabControlLists.Location = new Point(0, top + this.tabControlViews.Height + this.resizer.Height);
  516.             base.OnLayout(levent);
  517.         }
  518.         
  519.         /// <summary>
  520.         /// Clean up any resources being used.
  521.         /// </summary>
  522.         protected override void Dispose( bool disposing ) {
  523.             if( disposing ) {
  524.                 if (components != null) {
  525.                     components.Dispose();
  526.                 }
  527.                 if (this.settings != null) {
  528.                     this.settings.Dispose();
  529.                     this.settings = null;
  530.                 }
  531.                 if (this.model != null) {
  532.                     this.model.Dispose();
  533.                     this.model = null;
  534.                 }
  535.                 IDisposable d = this.ip as IDisposable;
  536.                 if (d != null) {
  537.                     d.Dispose();
  538.                 }
  539.                 this.ip = null;
  540.             }
  541.             base.Dispose( disposing );
  542.         }
  543.         protected virtual XmlTreeView CreateTreeView() {
  544.             return new XmlTreeView();
  545.         }
  546.         protected virtual void CreateTabControl() {
  547.             // 
  548.             // tabPageTaskList
  549.             // 
  550.             this.tabPageTaskList.Controls.Add(this.taskList);
  551.             this.tabPageTaskList.Location = new System.Drawing.Point(4, 24);
  552.             this.tabPageTaskList.Name = "tabPageTaskList";
  553.             this.tabPageTaskList.AccessibleName = "tabPageTaskList";
  554.             this.tabPageTaskList.Padding = new System.Windows.Forms.Padding(0);
  555.             this.tabPageTaskList.Size = new System.Drawing.Size(728, 68);
  556.             this.tabPageTaskList.TabIndex = 1;
  557.             this.tabPageTaskList.Text = SR.ErrorListTab;
  558.             // 
  559.             // taskList
  560.             // 
  561.             this.taskList.Dock = System.Windows.Forms.DockStyle.Fill;
  562.             this.taskList.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F);
  563.             this.taskList.Location = new System.Drawing.Point(3, 3);
  564.             this.taskList.Margin = new System.Windows.Forms.Padding(0);
  565.             this.taskList.Name = "taskList";
  566.             this.taskList.Size = new System.Drawing.Size(722, 62);
  567.             this.taskList.TabIndex = 2;
  568.             this.taskList.Navigate += new XmlNotepad.NavigateEventHandler(this.taskList_Navigate);
  569.             // 
  570.             // tabPageDynamicHelp
  571.             // 
  572.             this.dynamicHelpViewer.Dock = DockStyle.Fill;
  573.             this.dynamicHelpViewer.VisibleChanged += new EventHandler(dynamicHelpViewer_VisibleChanged);
  574.             this.tabPageDynamicHelp.Controls.Add(dynamicHelpViewer);
  575.             this.tabPageDynamicHelp.Location = new System.Drawing.Point(4, 24);
  576.             this.tabPageDynamicHelp.Name = "tabPageDynamicHelp";
  577.             this.tabPageDynamicHelp.Padding = new System.Windows.Forms.Padding(0);
  578.             this.tabPageDynamicHelp.Size = new System.Drawing.Size(728, 68);
  579.             this.tabPageDynamicHelp.TabIndex = 2;
  580.             this.tabPageDynamicHelp.Text = SR.DynamicHelpTab;
  581.             // 
  582.             // tabControlLists
  583.             // 
  584.             this.tabControlLists = new NoBorderTabControl();
  585.             this.tabControlLists.Controls.AddRange(new Control[]{
  586.                 this.tabPageTaskList,
  587.                 this.tabPageDynamicHelp});
  588.             this.tabControlLists.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F);
  589.             this.tabControlLists.Location = new System.Drawing.Point(0, 300);
  590.             this.tabControlLists.Name = "tabControlLists";
  591.             this.tabControlLists.SelectedIndex = 0;
  592.             this.tabControlLists.Size = new System.Drawing.Size(736, 90);
  593.             this.tabControlLists.TabIndex = 9;
  594.             this.tabControlLists.Selected += new NoBorderTabControlEventHandler(TabControlLists_Selected);
  595.             
  596.             this.Controls.Add(this.tabControlLists);
  597.         }
  598.         void dynamicHelpViewer_VisibleChanged(object sender, EventArgs e) {
  599.             this.DisplayHelp();
  600.         }
  601.         protected virtual void TabControlLists_Selected(object sender, NoBorderTabControlEventArgs e) {
  602.             if (e.TabPage == this.tabPageDynamicHelp) {
  603.                 this.DisplayHelp();
  604.             }
  605.         }
  606.         #region Windows Form Designer generated code
  607.         /// <summary>
  608.         /// Required method for Designer support - do not modify
  609.         /// the contents of this method with the code editor.
  610.         /// </summary>
  611.         [STAThread]
  612.         private void InitializeComponent() {
  613.             this.components = new System.ComponentModel.Container();
  614.             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormMain));            
  615.             this.xmlTreeView1 = new XmlNotepad.XmlTreeView();
  616.             this.statusBar1 = new System.Windows.Forms.StatusBar();
  617.             this.statusBarPanelMessage = new System.Windows.Forms.StatusBarPanel();
  618.             this.statusBarPanelBusy = new System.Windows.Forms.StatusBarPanel();
  619.             this.contextMenu1 = new System.Windows.Forms.ContextMenuStrip(this.components);
  620.             this.ctxcutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  621.             this.ctxMenuItemCopy = new System.Windows.Forms.ToolStripMenuItem();
  622.             this.ctxMenuItemPaste = new System.Windows.Forms.ToolStripMenuItem();
  623.             this.toolStripMenuItem13 = new System.Windows.Forms.ToolStripSeparator();
  624.             this.deleteToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
  625.             this.insertToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
  626.             this.renameToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  627.             this.duplicateToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
  628.             this.changeToContextMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  629.             this.changeToAttributeContextMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  630.             this.changeToTextContextMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  631.             this.changeToCDATAContextMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  632.             this.changeToCommentContextMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  633.             this.changeToProcessingInstructionContextMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  634.             this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
  635.             this.ctxGotoDefinitionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  636.             this.ctxMenuItem20 = new System.Windows.Forms.ToolStripSeparator();
  637.             this.ctxElementToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  638.             this.ctxElementBeforeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  639.             this.ctxElementAfterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  640.             this.ctxElementChildToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  641.             this.ctxAttributeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  642.             this.ctxAttributeBeforeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  643.             this.ctxAttributeAfterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  644.             this.ctxAttributeChildToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  645.             this.ctxTextToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  646.             this.ctxTextBeforeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  647.             this.ctxTextAfterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  648.             this.ctxTextChildToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  649.             this.ctxCommentToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  650.             this.ctxCommentBeforeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  651.             this.ctxCommentAfterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  652.             this.ctxCommentChildToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  653.             this.ctxCdataToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  654.             this.ctxCdataBeforeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  655.             this.ctxCdataAfterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  656.             this.ctxCdataChildToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  657.             this.ctxPIToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  658.             this.ctxPIBeforeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  659.             this.ctxPIAfterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  660.             this.ctxPIChildToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  661.             this.ctxMenuItem23 = new System.Windows.Forms.ToolStripSeparator();
  662.             this.ctxMenuItemExpand = new System.Windows.Forms.ToolStripMenuItem();
  663.             this.ctxMenuItemCollapse = new System.Windows.Forms.ToolStripMenuItem();
  664.             this.menuStrip1 = new System.Windows.Forms.MenuStrip();
  665.             this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  666.             this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  667.             this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  668.             this.reloadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  669.             this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
  670.             this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  671.             this.saveAsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  672.             this.exportErrorsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  673.             this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
  674.             this.recentFilesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  675.             this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator();
  676.             this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  677.             this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  678.             this.undoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  679.             this.redoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  680.             this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripSeparator();
  681.             this.cutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  682.             this.copyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  683.             this.pasteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  684.             this.toolStripMenuItem5 = new System.Windows.Forms.ToolStripSeparator();
  685.             this.deleteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  686.             this.repeatToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  687.             this.renameToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
  688.             this.duplicateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  689.             this.changeToToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  690.             this.changeToElementToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
  691.             this.changeToAttributeToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
  692.             this.changeToTextToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
  693.             this.changeToCDATAToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
  694.             this.changeToCommentToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
  695.             this.changeToProcessingInstructionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  696.             this.toolStripMenuItem12 = new System.Windows.Forms.ToolStripSeparator();
  697.             this.gotoDefinitionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  698.             this.expandXIncludesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  699.             this.toolStripMenuItem6 = new System.Windows.Forms.ToolStripSeparator();
  700.             this.nudgeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  701.             this.upToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  702.             this.downToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  703.             this.leftToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  704.             this.rightToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  705.             this.toolStripMenuItem7 = new System.Windows.Forms.ToolStripSeparator();
  706.             this.findToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  707.             this.replaceToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  708.             this.incrementalSearchToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  709.             this.viewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  710.             this.expandAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  711.             this.collapseAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  712.             this.toolStripMenuItem8 = new System.Windows.Forms.ToolStripSeparator();
  713.             this.statusBarToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  714.             this.toolStripMenuItem9 = new System.Windows.Forms.ToolStripSeparator();
  715.             this.sourceToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  716.             this.optionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  717.             this.schemasToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  718.             this.toolStripMenuItem11 = new System.Windows.Forms.ToolStripSeparator();
  719.             this.nextErrorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  720.             this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
  721.             this.compareXMLFilesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  722.             this.insertToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  723.             this.elementToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  724.             this.elementBeforeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  725.             this.elementAfterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  726.             this.elementChildToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  727.             this.attributeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  728.             this.attributeBeforeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  729.             this.attributeAfterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  730.             this.attributeChildToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  731.             this.textToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  732.             this.textBeforeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  733.             this.textAfterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  734.             this.textChildToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  735.             this.commentToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  736.             this.commentBeforeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  737.             this.commentAfterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  738.             this.commentChildToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  739.             this.CDATAToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  740.             this.cdataBeforeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  741.             this.cdataAfterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  742.             this.cdataChildToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  743.             this.PIToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  744.             this.PIBeforeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  745.             this.PIAfterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  746.             this.PIChildToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  747.             this.windowToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  748.             this.newWindowToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  749.             this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  750.             this.contentsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  751.             this.indexToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  752.             this.toolStripMenuItem10 = new System.Windows.Forms.ToolStripSeparator();
  753.             this.aboutXMLNotepadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  754.             this.toolStripMenuItemUpdate = new System.Windows.Forms.ToolStripMenuItem();
  755.             this.toolStrip1 = new System.Windows.Forms.ToolStrip();
  756.             this.toolStripButtonNew = new System.Windows.Forms.ToolStripButton();
  757.             this.toolStripButtonOpen = new System.Windows.Forms.ToolStripButton();
  758.             this.toolStripButtonSave = new System.Windows.Forms.ToolStripButton();
  759.             this.toolStripButtonUndo = new System.Windows.Forms.ToolStripButton();
  760.             this.toolStripButtonRedo = new System.Windows.Forms.ToolStripButton();
  761.             this.toolStripButtonCut = new System.Windows.Forms.ToolStripButton();
  762.             this.toolStripButtonCopy = new System.Windows.Forms.ToolStripButton();
  763.             this.toolStripButtonPaste = new System.Windows.Forms.ToolStripButton();
  764.             this.toolStripButtonDelete = new System.Windows.Forms.ToolStripButton();
  765.             this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
  766.             this.toolStripButtonNudgeUp = new System.Windows.Forms.ToolStripButton();
  767.             this.toolStripButtonNudgeDown = new System.Windows.Forms.ToolStripButton();
  768.             this.toolStripButtonNudgeLeft = new System.Windows.Forms.ToolStripButton();
  769.             this.toolStripButtonNudgeRight = new System.Windows.Forms.ToolStripButton();
  770.             this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
  771.             this.helpProvider1 = new System.Windows.Forms.HelpProvider();
  772.             this.tabPageTaskList = new XmlNotepad.NoBorderTabPage();
  773.             this.tabPageDynamicHelp = new XmlNotepad.NoBorderTabPage();
  774.             this.resizer = new XmlNotepad.PaneResizer();
  775.             this.taskList = new XmlNotepad.TaskList();
  776.             this.dynamicHelpViewer = new XmlNotepad.XsltViewer();
  777.             this.xsltViewer = new XmlNotepad.XsltViewer();
  778.             this.tabControlViews = new XmlNotepad.NoBorderTabControl();
  779.             this.tabPageTreeView = new XmlNotepad.NoBorderTabPage();
  780.             this.tabPageHtmlView = new XmlNotepad.NoBorderTabPage();
  781.             this.comboBoxLocation = new System.Windows.Forms.ComboBox();
  782.             changeToElementContextMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  783.             ((System.ComponentModel.ISupportInitialize)(this.statusBarPanelMessage)).BeginInit();
  784.             ((System.ComponentModel.ISupportInitialize)(this.statusBarPanelBusy)).BeginInit();
  785.             this.contextMenu1.SuspendLayout();
  786.             this.menuStrip1.SuspendLayout();
  787.             this.toolStrip1.SuspendLayout();
  788.             this.tabControlViews.SuspendLayout();
  789.             this.tabPageTreeView.SuspendLayout();
  790.             this.tabPageHtmlView.SuspendLayout();
  791.             this.SuspendLayout();
  792.             // 
  793.             // xmlTreeView1
  794.             // 
  795.             resources.ApplyResources(this.xmlTreeView1, "xmlTreeView1");
  796.             this.xmlTreeView1.BackColor = System.Drawing.SystemColors.Window;
  797.             this.xmlTreeView1.Name = "xmlTreeView1";
  798.             this.xmlTreeView1.ResizerPosition = 200;
  799.             this.xmlTreeView1.SelectedNode = null;
  800.             // 
  801.             // statusBar1
  802.             // 
  803.             resources.ApplyResources(this.statusBar1, "statusBar1");
  804.             this.statusBar1.Name = "statusBar1";
  805.             this.statusBar1.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
  806.             this.statusBarPanelMessage,
  807.             this.statusBarPanelBusy});
  808.             this.statusBar1.ShowPanels = true;
  809.             // 
  810.             // statusBarPanelMessage
  811.             // 
  812.             this.statusBarPanelMessage.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring;
  813.             resources.ApplyResources(this.statusBarPanelMessage, "statusBarPanelMessage");
  814.             // 
  815.             // statusBarPanelBusy
  816.             // 
  817.             resources.ApplyResources(this.statusBarPanelBusy, "statusBarPanelBusy");
  818.             // 
  819.             // contextMenu1
  820.             // 
  821.             this.contextMenu1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
  822.             this.ctxcutToolStripMenuItem,
  823.             this.ctxMenuItemCopy,
  824.             this.ctxMenuItemPaste,
  825.             this.toolStripMenuItem13,
  826.             this.deleteToolStripMenuItem1,
  827.             this.insertToolStripMenuItem1,
  828.             this.renameToolStripMenuItem,
  829.             this.duplicateToolStripMenuItem1,
  830.             this.changeToContextMenuItem,
  831.             this.toolStripSeparator3,
  832.             this.ctxGotoDefinitionToolStripMenuItem,
  833.             this.ctxMenuItem20,
  834.             this.ctxElementToolStripMenuItem,
  835.             this.ctxAttributeToolStripMenuItem,
  836.             this.ctxTextToolStripMenuItem,
  837.             this.ctxCommentToolStripMenuItem,
  838.             this.ctxCdataToolStripMenuItem,
  839.             this.ctxPIToolStripMenuItem,
  840.             this.ctxMenuItem23,
  841.             this.ctxMenuItemExpand,
  842.             this.ctxMenuItemCollapse});
  843.             this.contextMenu1.Name = "contextMenuStrip1";
  844.             resources.ApplyResources(this.contextMenu1, "contextMenu1");
  845.             // 
  846.             // ctxcutToolStripMenuItem
  847.             // 
  848.             resources.ApplyResources(this.ctxcutToolStripMenuItem, "ctxcutToolStripMenuItem");
  849.             this.ctxcutToolStripMenuItem.Name = "ctxcutToolStripMenuItem";
  850.             // 
  851.             // ctxMenuItemCopy
  852.             // 
  853.             resources.ApplyResources(this.ctxMenuItemCopy, "ctxMenuItemCopy");
  854.             this.ctxMenuItemCopy.Name = "ctxMenuItemCopy";
  855.             // 
  856.             // ctxMenuItemPaste
  857.             // 
  858.             resources.ApplyResources(this.ctxMenuItemPaste, "ctxMenuItemPaste");
  859.             this.ctxMenuItemPaste.Name = "ctxMenuItemPaste";
  860.             // 
  861.             // toolStripMenuItem13
  862.             // 
  863.             this.toolStripMenuItem13.Name = "toolStripMenuItem13";
  864.             resources.ApplyResources(this.toolStripMenuItem13, "toolStripMenuItem13");
  865.             // 
  866.             // deleteToolStripMenuItem1
  867.             // 
  868.             resources.ApplyResources(this.deleteToolStripMenuItem1, "deleteToolStripMenuItem1");
  869.             this.deleteToolStripMenuItem1.Name = "deleteToolStripMenuItem1";
  870.             this.deleteToolStripMenuItem1.Click += new System.EventHandler(this.deleteToolStripMenuItem1_Click);
  871.             // 
  872.             // insertToolStripMenuItem1
  873.             // 
  874.             this.insertToolStripMenuItem1.Name = "insertToolStripMenuItem1";
  875.             resources.ApplyResources(this.insertToolStripMenuItem1, "insertToolStripMenuItem1");
  876.             this.insertToolStripMenuItem1.Click += new System.EventHandler(this.insertToolStripMenuItem1_Click);
  877.             // 
  878.             // renameToolStripMenuItem
  879.             // 
  880.             this.renameToolStripMenuItem.Name = "renameToolStripMenuItem";
  881.             resources.ApplyResources(this.renameToolStripMenuItem, "renameToolStripMenuItem");
  882.             this.renameToolStripMenuItem.Click += new System.EventHandler(this.renameToolStripMenuItem_Click);
  883.             // 
  884.             // duplicateToolStripMenuItem1
  885.             // 
  886.             this.duplicateToolStripMenuItem1.Name = "duplicateToolStripMenuItem1";
  887.             resources.ApplyResources(this.duplicateToolStripMenuItem1, "duplicateToolStripMenuItem1");
  888.             this.duplicateToolStripMenuItem1.Click += new System.EventHandler(this.duplicateToolStripMenuItem1_Click);
  889.             // 
  890.             // changeToContextMenuItem
  891.             // 
  892.             this.changeToContextMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
  893.             changeToElementContextMenuItem,
  894.             this.changeToAttributeContextMenuItem,
  895.             this.changeToTextContextMenuItem,
  896.             this.changeToCDATAContextMenuItem,
  897.             this.changeToCommentContextMenuItem,
  898.             this.changeToProcessingInstructionContextMenuItem});
  899.             this.changeToContextMenuItem.Name = "changeToContextMenuItem";
  900.             resources.ApplyResources(this.changeToContextMenuItem, "changeToContextMenuItem");
  901.             // 
  902.             // changeToElementContextMenuItem
  903.             // 
  904.             changeToElementContextMenuItem.Name = "changeToElementContextMenuItem";
  905.             resources.ApplyResources(changeToElementContextMenuItem, "changeToElementContextMenuItem");
  906.             changeToElementContextMenuItem.Click += new System.EventHandler(this.changeToElementContextMenuItem_Click);
  907.             // 
  908.             // changeToAttributeContextMenuItem
  909.             // 
  910.             this.changeToAttributeContextMenuItem.Name = "changeToAttributeContextMenuItem";
  911.             resources.ApplyResources(this.changeToAttributeContextMenuItem, "changeToAttributeContextMenuItem");
  912.             this.changeToAttributeContextMenuItem.Click += new System.EventHandler(this.changeToAttributeContextMenuItem_Click);
  913.             // 
  914.             // changeToTextContextMenuItem
  915.             // 
  916.             this.changeToTextContextMenuItem.Name = "changeToTextContextMenuItem";
  917.             resources.ApplyResources(this.changeToTextContextMenuItem, "changeToTextContextMenuItem");
  918.             this.changeToTextContextMenuItem.Click += new System.EventHandler(this.changeToTextToolStripMenuItem_Click);
  919.             // 
  920.             // changeToCDATAContextMenuItem
  921.             // 
  922.             this.changeToCDATAContextMenuItem.Name = "changeToCDATAContextMenuItem";
  923.             resources.ApplyResources(this.changeToCDATAContextMenuItem, "changeToCDATAContextMenuItem");
  924.             this.changeToCDATAContextMenuItem.Click += new System.EventHandler(this.changeToCDATAContextMenuItem_Click);
  925.             // 
  926.             // changeToCommentContextMenuItem
  927.             // 
  928.             this.changeToCommentContextMenuItem.Name = "changeToCommentContextMenuItem";
  929.             resources.ApplyResources(this.changeToCommentContextMenuItem, "changeToCommentContextMenuItem");
  930.             this.changeToCommentContextMenuItem.Click += new System.EventHandler(this.changeToCommentContextMenuItem_Click);
  931.             // 
  932.             // changeToProcessingInstructionContextMenuItem
  933.             // 
  934.             this.changeToProcessingInstructionContextMenuItem.Name = "changeToProcessingInstructionContextMenuItem";
  935.             resources.ApplyResources(this.changeToProcessingInstructionContextMenuItem, "changeToProcessingInstructionContextMenuItem");
  936.             this.changeToProcessingInstructionContextMenuItem.Click += new System.EventHandler(this.changeToProcessingInstructionContextMenuItem_Click);
  937.             // 
  938.             // toolStripSeparator3
  939.             // 
  940.             this.toolStripSeparator3.Name = "toolStripSeparator3";
  941.             resources.ApplyResources(this.toolStripSeparator3, "toolStripSeparator3");
  942.             // 
  943.             // ctxGotoDefinitionToolStripMenuItem
  944.             // 
  945.             this.ctxGotoDefinitionToolStripMenuItem.Name = "ctxGotoDefinitionToolStripMenuItem";
  946.             resources.ApplyResources(this.ctxGotoDefinitionToolStripMenuItem, "ctxGotoDefinitionToolStripMenuItem");
  947.             this.ctxGotoDefinitionToolStripMenuItem.Click += new System.EventHandler(this.ctxGotoDefinitionToolStripMenuItem_Click);
  948.             // 
  949.             // ctxMenuItem20
  950.             // 
  951.             this.ctxMenuItem20.Name = "ctxMenuItem20";
  952.             resources.ApplyResources(this.ctxMenuItem20, "ctxMenuItem20");
  953.             // 
  954.             // ctxElementToolStripMenuItem
  955.             // 
  956.             this.ctxElementToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
  957.             this.ctxElementBeforeToolStripMenuItem,
  958.             this.ctxElementAfterToolStripMenuItem,
  959.             this.ctxElementChildToolStripMenuItem});
  960.             this.ctxElementToolStripMenuItem.Name = "ctxElementToolStripMenuItem";
  961.             resources.ApplyResources(this.ctxElementToolStripMenuItem, "ctxElementToolStripMenuItem");
  962.             // 
  963.             // ctxElementBeforeToolStripMenuItem
  964.             // 
  965.             resources.ApplyResources(this.ctxElementBeforeToolStripMenuItem, "ctxElementBeforeToolStripMenuItem");
  966.             this.ctxElementBeforeToolStripMenuItem.Name = "ctxElementBeforeToolStripMenuItem";
  967.             this.ctxElementBeforeToolStripMenuItem.Click += new System.EventHandler(this.elementBeforeToolStripMenuItem_Click);
  968.             // 
  969.             // ctxElementAfterToolStripMenuItem
  970.             // 
  971.             resources.ApplyResources(this.ctxElementAfterToolStripMenuItem, "ctxElementAfterToolStripMenuItem");
  972.             this.ctxElementAfterToolStripMenuItem.Name = "ctxElementAfterToolStripMenuItem";
  973.             this.ctxElementAfterToolStripMenuItem.Click += new System.EventHandler(this.elementAfterToolStripMenuItem_Click);
  974.             // 
  975.             // ctxElementChildToolStripMenuItem
  976.             // 
  977.             resources.ApplyResources(this.ctxElementChildToolStripMenuItem, "ctxElementChildToolStripMenuItem");
  978.             this.ctxElementChildToolStripMenuItem.Name = "ctxElementChildToolStripMenuItem";
  979.             this.ctxElementChildToolStripMenuItem.Click += new System.EventHandler(this.elementChildToolStripMenuItem_Click);
  980.             // 
  981.             // ctxAttributeToolStripMenuItem
  982.             // 
  983.             this.ctxAttributeToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
  984.             this.ctxAttributeBeforeToolStripMenuItem,
  985.             this.ctxAttributeAfterToolStripMenuItem,
  986.             this.ctxAttributeChildToolStripMenuItem});
  987.             this.ctxAttributeToolStripMenuItem.Name = "ctxAttributeToolStripMenuItem";
  988.             resources.ApplyResources(this.ctxAttributeToolStripMenuItem, "ctxAttributeToolStripMenuItem");
  989.             // 
  990.             // ctxAttributeBeforeToolStripMenuItem
  991.             // 
  992.             resources.ApplyResources(this.ctxAttributeBeforeToolStripMenuItem, "ctxAttributeBeforeToolStripMenuItem");
  993.             this.ctxAttributeBeforeToolStripMenuItem.Name = "ctxAttributeBeforeToolStripMenuItem";
  994.             this.ctxAttributeBeforeToolStripMenuItem.Click += new System.EventHandler(this.attributeBeforeToolStripMenuItem_Click);
  995.             // 
  996.             // ctxAttributeAfterToolStripMenuItem
  997.             // 
  998.             resources.ApplyResources(this.ctxAttributeAfterToolStripMenuItem, "ctxAttributeAfterToolStripMenuItem");
  999.             this.ctxAttributeAfterToolStripMenuItem.Name = "ctxAttributeAfterToolStripMenuItem";
  1000.             this.ctxAttributeAfterToolStripMenuItem.Click += new System.EventHandler(this.attributeAfterToolStripMenuItem_Click);
  1001.             // 
  1002.             // ctxAttributeChildToolStripMenuItem
  1003.             // 
  1004.             resources.ApplyResources(this.ctxAttributeChildToolStripMenuItem, "ctxAttributeChildToolStripMenuItem");
  1005.             this.ctxAttributeChildToolStripMenuItem.Name = "ctxAttributeChildToolStripMenuItem";
  1006.             this.ctxAttributeChildToolStripMenuItem.Click += new System.EventHandler(this.attributeChildToolStripMenuItem_Click);
  1007.             // 
  1008.             // ctxTextToolStripMenuItem
  1009.             // 
  1010.             this.ctxTextToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
  1011.             this.ctxTextBeforeToolStripMenuItem,
  1012.             this.ctxTextAfterToolStripMenuItem,
  1013.             this.ctxTextChildToolStripMenuItem});
  1014.             this.ctxTextToolStripMenuItem.Name = "ctxTextToolStripMenuItem";
  1015.             resources.ApplyResources(this.ctxTextToolStripMenuItem, "ctxTextToolStripMenuItem");
  1016.             // 
  1017.             // ctxTextBeforeToolStripMenuItem
  1018.             // 
  1019.             resources.ApplyResources(this.ctxTextBeforeToolStripMenuItem, "ctxTextBeforeToolStripMenuItem");
  1020.             this.ctxTextBeforeToolStripMenuItem.Name = "ctxTextBeforeToolStripMenuItem";
  1021.             this.ctxTextBeforeToolStripMenuItem.Click += new System.EventHandler(this.textBeforeToolStripMenuItem_Click);
  1022.             // 
  1023.             // ctxTextAfterToolStripMenuItem
  1024.             // 
  1025.             resources.ApplyResources(this.ctxTextAfterToolStripMenuItem, "ctxTextAfterToolStripMenuItem");
  1026.             this.ctxTextAfterToolStripMenuItem.Name = "ctxTextAfterToolStripMenuItem";
  1027.             this.ctxTextAfterToolStripMenuItem.Click += new System.EventHandler(this.textAfterToolStripMenuItem_Click);
  1028.             // 
  1029.             // ctxTextChildToolStripMenuItem
  1030.             // 
  1031.             resources.ApplyResources(this.ctxTextChildToolStripMenuItem, "ctxTextChildToolStripMenuItem");
  1032.             this.ctxTextChildToolStripMenuItem.Name = "ctxTextChildToolStripMenuItem";
  1033.             this.ctxTextChildToolStripMenuItem.Click += new System.EventHandler(this.textChildToolStripMenuItem_Click);
  1034.             // 
  1035.             // ctxCommentToolStripMenuItem
  1036.             // 
  1037.             this.ctxCommentToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
  1038.             this.ctxCommentBeforeToolStripMenuItem,
  1039.             this.ctxCommentAfterToolStripMenuItem,
  1040.             this.ctxCommentChildToolStripMenuItem});
  1041.             this.ctxCommentToolStripMenuItem.Name = "ctxCommentToolStripMenuItem";
  1042.             resources.ApplyResources(this.ctxCommentToolStripMenuItem, "ctxCommentToolStripMenuItem");
  1043.             // 
  1044.             // ctxCommentBeforeToolStripMenuItem
  1045.             // 
  1046.             resources.ApplyResources(this.ctxCommentBeforeToolStripMenuItem, "ctxCommentBeforeToolStripMenuItem");
  1047.             this.ctxCommentBeforeToolStripMenuItem.Name = "ctxCommentBeforeToolStripMenuItem";
  1048.             this.ctxCommentBeforeToolStripMenuItem.Click += new System.EventHandler(this.commentBeforeToolStripMenuItem_Click);
  1049.             // 
  1050.             // ctxCommentAfterToolStripMenuItem
  1051.             // 
  1052.             resources.ApplyResources(this.ctxCommentAfterToolStripMenuItem, "ctxCommentAfterToolStripMenuItem");
  1053.             this.ctxCommentAfterToolStripMenuItem.Name = "ctxCommentAfterToolStripMenuItem";
  1054.             this.ctxCommentAfterToolStripMenuItem.Click += new System.EventHandler(this.commentAfterToolStripMenuItem_Click);
  1055.             // 
  1056.             // ctxCommentChildToolStripMenuItem
  1057.             // 
  1058.             resources.ApplyResources(this.ctxCommentChildToolStripMenuItem, "ctxCommentChildToolStripMenuItem");
  1059.             this.ctxCommentChildToolStripMenuItem.Name = "ctxCommentChildToolStripMenuItem";
  1060.             this.ctxCommentChildToolStripMenuItem.Click += new System.EventHandler(this.commentChildToolStripMenuItem_Click);
  1061.             // 
  1062.             // ctxCdataToolStripMenuItem
  1063.             // 
  1064.             this.ctxCdataToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
  1065.             this.ctxCdataBeforeToolStripMenuItem,
  1066.             this.ctxCdataAfterToolStripMenuItem,
  1067.             this.ctxCdataChildToolStripMenuItem});
  1068.             this.ctxCdataToolStripMenuItem.Name = "ctxCdataToolStripMenuItem";
  1069.             resources.ApplyResources(this.ctxCdataToolStripMenuItem, "ctxCdataToolStripMenuItem");
  1070.             // 
  1071.             // ctxCdataBeforeToolStripMenuItem
  1072.             // 
  1073.             resources.ApplyResources(this.ctxCdataBeforeToolStripMenuItem, "ctxCdataBeforeToolStripMenuItem");
  1074.             this.ctxCdataBeforeToolStripMenuItem.Name = "ctxCdataBeforeToolStripMenuItem";
  1075.             this.ctxCdataBeforeToolStripMenuItem.Click += new System.EventHandler(this.cdataBeforeToolStripMenuItem_Click);
  1076.             // 
  1077.             // ctxCdataAfterToolStripMenuItem
  1078.             // 
  1079.             resources.ApplyResources(this.ctxCdataAfterToolStripMenuItem, "ctxCdataAfterToolStripMenuItem");
  1080.             this.ctxCdataAfterToolStripMenuItem.Name = "ctxCdataAfterToolStripMenuItem";
  1081.             this.ctxCdataAfterToolStripMenuItem.Click += new System.EventHandler(this.cdataAfterToolStripMenuItem_Click);
  1082.             // 
  1083.             // ctxCdataChildToolStripMenuItem
  1084.             // 
  1085.             resources.ApplyResources(this.ctxCdataChildToolStripMenuItem, "ctxCdataChildToolStripMenuItem");
  1086.             this.ctxCdataChildToolStripMenuItem.Name = "ctxCdataChildToolStripMenuItem";
  1087.             this.ctxCdataChildToolStripMenuItem.Click += new System.EventHandler(this.cdataChildToolStripMenuItem_Click);
  1088.             // 
  1089.             // ctxPIToolStripMenuItem
  1090.             // 
  1091.             this.ctxPIToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
  1092.             this.ctxPIBeforeToolStripMenuItem,
  1093.             this.ctxPIAfterToolStripMenuItem,
  1094.             this.ctxPIChildToolStripMenuItem});
  1095.             this.ctxPIToolStripMenuItem.Name = "ctxPIToolStripMenuItem";
  1096.             resources.ApplyResources(this.ctxPIToolStripMenuItem, "ctxPIToolStripMenuItem");
  1097.             // 
  1098.             // ctxPIBeforeToolStripMenuItem
  1099.             // 
  1100.             resources.ApplyResources(this.ctxPIBeforeToolStripMenuItem, "ctxPIBeforeToolStripMenuItem");
  1101.             this.ctxPIBeforeToolStripMenuItem.Name = "ctxPIBeforeToolStripMenuItem";
  1102.             this.ctxPIBeforeToolStripMenuItem.Click += new System.EventHandler(this.PIBeforeToolStripMenuItem_Click);
  1103.             // 
  1104.             // ctxPIAfterToolStripMenuItem
  1105.             // 
  1106.             resources.ApplyResources(this.ctxPIAfterToolStripMenuItem, "ctxPIAfterToolStripMenuItem");
  1107.             this.ctxPIAfterToolStripMenuItem.Name = "ctxPIAfterToolStripMenuItem";
  1108.             this.ctxPIAfterToolStripMenuItem.Click += new System.EventHandler(this.PIAfterToolStripMenuItem_Click);
  1109.             // 
  1110.             // ctxPIChildToolStripMenuItem
  1111.             // 
  1112.             resources.ApplyResources(this.ctxPIChildToolStripMenuItem, "ctxPIChildToolStripMenuItem");
  1113.             this.ctxPIChildToolStripMenuItem.Name = "ctxPIChildToolStripMenuItem";
  1114.             this.ctxPIChildToolStripMenuItem.Click += new System.EventHandler(this.PIChildToolStripMenuItem_Click);
  1115.             // 
  1116.             // ctxMenuItem23
  1117.             // 
  1118.             this.ctxMenuItem23.Name = "ctxMenuItem23";
  1119.             resources.ApplyResources(this.ctxMenuItem23, "ctxMenuItem23");
  1120.             // 
  1121.             // ctxMenuItemExpand
  1122.             // 
  1123.             this.ctxMenuItemExpand.Name = "ctxMenuItemExpand";
  1124.             resources.ApplyResources(this.ctxMenuItemExpand, "ctxMenuItemExpand");
  1125.             // 
  1126.             // ctxMenuItemCollapse
  1127.             // 
  1128.             this.ctxMenuItemCollapse.Name = "ctxMenuItemCollapse";
  1129.             resources.ApplyResources(this.ctxMenuItemCollapse, "ctxMenuItemCollapse");
  1130.             // 
  1131.             // menuStrip1
  1132.             // 
  1133.             this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
  1134.             this.fileToolStripMenuItem,
  1135.             this.editToolStripMenuItem,
  1136.             this.viewToolStripMenuItem,
  1137.             this.insertToolStripMenuItem,
  1138.             this.windowToolStripMenuItem,
  1139.             this.helpToolStripMenuItem,
  1140.             this.toolStripMenuItemUpdate});
  1141.             resources.ApplyResources(this.menuStrip1, "menuStrip1");
  1142.             this.menuStrip1.Name = "menuStrip1";
  1143.             // 
  1144.             // fileToolStripMenuItem
  1145.             // 
  1146.             this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
  1147.             this.newToolStripMenuItem,
  1148.             this.openToolStripMenuItem,
  1149.             this.reloadToolStripMenuItem,
  1150.             this.toolStripMenuItem1,
  1151.             this.saveToolStripMenuItem,
  1152.             this.saveAsToolStripMenuItem,
  1153.             this.exportErrorsToolStripMenuItem,
  1154.             this.toolStripMenuItem2,
  1155.             this.recentFilesToolStripMenuItem,
  1156.             this.toolStripMenuItem3,
  1157.             this.exitToolStripMenuItem});
  1158.             this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
  1159.             resources.ApplyResources(this.fileToolStripMenuItem, "fileToolStripMenuItem");
  1160.             // 
  1161.             // newToolStripMenuItem
  1162.             // 
  1163.             resources.ApplyResources(this.newToolStripMenuItem, "newToolStripMenuItem");
  1164.             this.newToolStripMenuItem.Name = "newToolStripMenuItem";
  1165.             this.newToolStripMenuItem.Click += new System.EventHandler(this.newToolStripMenuItem_Click);
  1166.             // 
  1167.             // openToolStripMenuItem
  1168.             // 
  1169.             resources.ApplyResources(this.openToolStripMenuItem, "openToolStripMenuItem");
  1170.             this.openToolStripMenuItem.Name = "openToolStripMenuItem";
  1171.             this.openToolStripMenuItem.Click += new System.EventHandler(this.openToolStripMenuItem_Click);
  1172.             // 
  1173.             // reloadToolStripMenuItem
  1174.             // 
  1175.             resources.ApplyResources(this.reloadToolStripMenuItem, "reloadToolStripMenuItem");
  1176.             this.reloadToolStripMenuItem.Name = "reloadToolStripMenuItem";
  1177.             this.reloadToolStripMenuItem.Click += new System.EventHandler(this.reloadToolStripMenuItem_Click);
  1178.             // 
  1179.             // toolStripMenuItem1
  1180.             // 
  1181.             this.toolStripMenuItem1.Name = "toolStripMenuItem1";
  1182.             resources.ApplyResources(this.toolStripMenuItem1, "toolStripMenuItem1");
  1183.             // 
  1184.             // saveToolStripMenuItem
  1185.             // 
  1186.             resources.ApplyResources(this.saveToolStripMenuItem, "saveToolStripMenuItem");
  1187.             this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
  1188.             this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click);
  1189.             // 
  1190.             // saveAsToolStripMenuItem
  1191.             // 
  1192.             resources.ApplyResources(this.saveAsToolStripMenuItem, "saveAsToolStripMenuItem");
  1193.             this.saveAsToolStripMenuItem.Name = "saveAsToolStripMenuItem";
  1194.             this.saveAsToolStripMenuItem.Click += new System.EventHandler(this.saveAsToolStripMenuItem_Click);
  1195.             // 
  1196.             // exportErrorsToolStripMenuItem
  1197.             // 
  1198.             resources.ApplyResources(this.exportErrorsToolStripMenuItem, "exportErrorsToolStripMenuItem");
  1199.             this.exportErrorsToolStripMenuItem.Name = "exportErrorsToolStripMenuItem";
  1200.             this.exportErrorsToolStripMenuItem.Click += new System.EventHandler(this.exportErrorsToolStripMenuItem_Click);
  1201.             // 
  1202.             // toolStripMenuItem2
  1203.             // 
  1204.             this.toolStripMenuItem2.Name = "toolStripMenuItem2";
  1205.             resources.ApplyResources(this.toolStripMenuItem2, "toolStripMenuItem2");
  1206.             // 
  1207.             // recentFilesToolStripMenuItem
  1208.             // 
  1209.             resources.ApplyResources(this.recentFilesToolStripMenuItem, "recentFilesToolStripMenuItem");
  1210.             this.recentFilesToolStripMenuItem.Name = "recentFilesToolStripMenuItem";
  1211.             // 
  1212.             // toolStripMenuItem3
  1213.             // 
  1214.             this.toolStripMenuItem3.Name = "toolStripMenuItem3";
  1215.             resources.ApplyResources(this.toolStripMenuItem3, "toolStripMenuItem3");
  1216.             // 
  1217.             // exitToolStripMenuItem
  1218.             // 
  1219.             resources.ApplyResources(this.exitToolStripMenuItem, "exitToolStripMenuItem");
  1220.             this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
  1221.             this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
  1222.             // 
  1223.             // editToolStripMenuItem
  1224.             // 
  1225.             this.editToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
  1226.             this.undoToolStripMenuItem,
  1227.             this.redoToolStripMenuItem,
  1228.             this.toolStripMenuItem4,
  1229.             this.cutToolStripMenuItem,
  1230.             this.copyToolStripMenuItem,
  1231.             this.pasteToolStripMenuItem,
  1232.             this.toolStripMenuItem5,
  1233.             this.deleteToolStripMenuItem,
  1234.             this.repeatToolStripMenuItem,
  1235.             this.renameToolStripMenuItem1,
  1236.             this.duplicateToolStripMenuItem,
  1237.             this.changeToToolStripMenuItem,
  1238.             this.toolStripMenuItem12,
  1239.             this.gotoDefinitionToolStripMenuItem,
  1240.             this.expandXIncludesToolStripMenuItem,
  1241.             this.toolStripMenuItem6,
  1242.             this.nudgeToolStripMenuItem,
  1243.             this.toolStripMenuItem7,
  1244.             this.findToolStripMenuItem,
  1245.             this.replaceToolStripMenuItem,
  1246.             this.incrementalSearchToolStripMenuItem});
  1247.             this.editToolStripMenuItem.Name = "editToolStripMenuItem";
  1248.             resources.ApplyResources(this.editToolStripMenuItem, "editToolStripMenuItem");
  1249.             // 
  1250.             // undoToolStripMenuItem
  1251.             // 
  1252.             resources.ApplyResources(this.undoToolStripMenuItem, "undoToolStripMenuItem");
  1253.             this.undoToolStripMenuItem.Name = "undoToolStripMenuItem";
  1254.             this.undoToolStripMenuItem.Click += new System.EventHandler(this.undoToolStripMenuItem_Click);
  1255.             // 
  1256.             // redoToolStripMenuItem
  1257.             // 
  1258.             resources.ApplyResources(this.redoToolStripMenuItem, "redoToolStripMenuItem");
  1259.             this.redoToolStripMenuItem.Name = "redoToolStripMenuItem";
  1260.             this.redoToolStripMenuItem.Click += new System.EventHandler(this.redoToolStripMenuItem_Click);
  1261.             // 
  1262.             // toolStripMenuItem4
  1263.             // 
  1264.             this.toolStripMenuItem4.Name = "toolStripMenuItem4";
  1265.             resources.ApplyResources(this.toolStripMenuItem4, "toolStripMenuItem4");
  1266.             // 
  1267.             // cutToolStripMenuItem
  1268.             // 
  1269.             resources.ApplyResources(this.cutToolStripMenuItem, "cutToolStripMenuItem");
  1270.             this.cutToolStripMenuItem.Name = "cutToolStripMenuItem";
  1271.             this.cutToolStripMenuItem.Click += new System.EventHandler(this.cutToolStripMenuItem_Click);
  1272.             // 
  1273.             // copyToolStripMenuItem
  1274.             // 
  1275.             resources.ApplyResources(this.copyToolStripMenuItem, "copyToolStripMenuItem");
  1276.             this.copyToolStripMenuItem.Name = "copyToolStripMenuItem";
  1277.             this.copyToolStripMenuItem.Click += new System.EventHandler(this.copyToolStripMenuItem_Click);
  1278.             // 
  1279.             // pasteToolStripMenuItem
  1280.             // 
  1281.             resources.ApplyResources(this.pasteToolStripMenuItem, "pasteToolStripMenuItem");
  1282.             this.pasteToolStripMenuItem.Name = "pasteToolStripMenuItem";
  1283.             this.pasteToolStripMenuItem.Click += new System.EventHandler(this.pasteToolStripMenuItem_Click);
  1284.             // 
  1285.             // toolStripMenuItem5
  1286.             // 
  1287.             this.toolStripMenuItem5.Name = "toolStripMenuItem5";
  1288.             resources.ApplyResources(this.toolStripMenuItem5, "toolStripMenuItem5");
  1289.             // 
  1290.             // deleteToolStripMenuItem
  1291.             // 
  1292.             resources.ApplyResources(this.deleteToolStripMenuItem, "deleteToolStripMenuItem");
  1293.             this.deleteToolStripMenuItem.Name = "deleteToolStripMenuItem";
  1294.             this.deleteToolStripMenuItem.Click += new System.EventHandler(this.deleteToolStripMenuItem_Click);
  1295.             // 
  1296.             // repeatToolStripMenuItem
  1297.             // 
  1298.             resources.ApplyResources(this.repeatToolStripMenuItem, "repeatToolStripMenuItem");
  1299.             this.repeatToolStripMenuItem.Name = "repeatToolStripMenuItem";
  1300.             this.repeatToolStripMenuItem.Click += new System.EventHandler(this.repeatToolStripMenuItem_Click);
  1301.             // 
  1302.             // renameToolStripMenuItem1
  1303.             // 
  1304.             resources.ApplyResources(this.renameToolStripMenuItem1, "renameToolStripMenuItem1");
  1305.             this.renameToolStripMenuItem1.Name = "renameToolStripMenuItem1";
  1306.             this.renameToolStripMenuItem1.Click += new System.EventHandler(this.renameToolStripMenuItem1_Click);
  1307.             // 
  1308.             // duplicateToolStripMenuItem
  1309.             // 
  1310.             resources.ApplyResources(this.duplicateToolStripMenuItem, "duplicateToolStripMenuItem");
  1311.             this.duplicateToolStripMenuItem.Name = "duplicateToolStripMenuItem";
  1312.             this.duplicateToolStripMenuItem.Click += new System.EventHandler(this.duplicateToolStripMenuItem_Click);
  1313.             // 
  1314.             // changeToToolStripMenuItem
  1315.             // 
  1316.             resources.ApplyResources(this.changeToToolStripMenuItem, "changeToToolStripMenuItem");
  1317.             this.changeToToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
  1318.             this.changeToElementToolStripMenuItem1,
  1319.             this.changeToAttributeToolStripMenuItem1,
  1320.             this.changeToTextToolStripMenuItem1,
  1321.             this.changeToCDATAToolStripMenuItem1,
  1322.             this.changeToCommentToolStripMenuItem1,
  1323.             this.changeToProcessingInstructionToolStripMenuItem});
  1324.             this.changeToToolStripMenuItem.Name = "changeToToolStripMenuItem";
  1325.             // 
  1326.             // changeToElementToolStripMenuItem1
  1327.             // 
  1328.             resources.ApplyResources(this.changeToElementToolStripMenuItem1, "changeToElementToolStripMenuItem1");
  1329.             this.changeToElementToolStripMenuItem1.Name = "changeToElementToolStripMenuItem1";
  1330.             this.changeToElementToolStripMenuItem1.Click += new System.EventHandler(this.changeToElementToolStripMenuItem1_Click);
  1331.             // 
  1332.             // changeToAttributeToolStripMenuItem1
  1333.             // 
  1334.             resources.ApplyResources(this.changeToAttributeToolStripMenuItem1, "changeToAttributeToolStripMenuItem1");
  1335.             this.changeToAttributeToolStripMenuItem1.Name = "changeToAttributeToolStripMenuItem1";
  1336.             this.changeToAttributeToolStripMenuItem1.Click += new System.EventHandler(this.changeToAttributeToolStripMenuItem1_Click);
  1337.             // 
  1338.             // changeToTextToolStripMenuItem1
  1339.             // 
  1340.             resources.ApplyResources(this.changeToTextToolStripMenuItem1, "changeToTextToolStripMenuItem1");
  1341.             this.changeToTextToolStripMenuItem1.Name = "changeToTextToolStripMenuItem1";
  1342.             this.changeToTextToolStripMenuItem1.Click += new System.EventHandler(this.changeToTextToolStripMenuItem1_Click);
  1343.             // 
  1344.             // changeToCDATAToolStripMenuItem1
  1345.             // 
  1346.             resources.ApplyResources(this.changeToCDATAToolStripMenuItem1, "changeToCDATAToolStripMenuItem1");
  1347.             this.changeToCDATAToolStripMenuItem1.Name = "changeToCDATAToolStripMenuItem1";
  1348.             this.changeToCDATAToolStripMenuItem1.Click += new System.EventHandler(this.changeToCDATAToolStripMenuItem1_Click);
  1349.             // 
  1350.             // changeToCommentToolStripMenuItem1
  1351.             // 
  1352.             resources.ApplyResources(this.changeToCommentToolStripMenuItem1, "changeToCommentToolStripMenuItem1");
  1353.             this.changeToCommentToolStripMenuItem1.Name = "changeToCommentToolStripMenuItem1";
  1354.             this.changeToCommentToolStripMenuItem1.Click += new System.EventHandler(this.changeToCommentToolStripMenuItem1_Click);
  1355.             // 
  1356.             // changeToProcessingInstructionToolStripMenuItem
  1357.             // 
  1358.             resources.ApplyResources(this.changeToProcessingInstructionToolStripMenuItem, "changeToProcessingInstructionToolStripMenuItem");
  1359.             this.changeToProcessingInstructionToolStripMenuItem.Name = "changeToProcessingInstructionToolStripMenuItem";
  1360.             this.changeToProcessingInstructionToolStripMenuItem.Click += new System.EventHandler(this.changeToProcessingInstructionToolStripMenuItem_Click);
  1361.             // 
  1362.             // toolStripMenuItem12
  1363.             // 
  1364.             this.toolStripMenuItem12.Name = "toolStripMenuItem12";
  1365.             resources.ApplyResources(this.toolStripMenuItem12, "toolStripMenuItem12");
  1366.             // 
  1367.             // gotoDefinitionToolStripMenuItem
  1368.             // 
  1369.             resources.ApplyResources(this.gotoDefinitionToolStripMenuItem, "gotoDefinitionToolStripMenuItem");
  1370.             this.gotoDefinitionToolStripMenuItem.Name = "gotoDefinitionToolStripMenuItem";
  1371.             this.gotoDefinitionToolStripMenuItem.Click += new System.EventHandler(this.gotoDefinitionToolStripMenuItem_Click);
  1372.             // 
  1373.             // expandXIncludesToolStripMenuItem
  1374.             // 
  1375.             resources.ApplyResources(this.expandXIncludesToolStripMenuItem, "expandXIncludesToolStripMenuItem");
  1376.             this.expandXIncludesToolStripMenuItem.Name = "expandXIncludesToolStripMenuItem";
  1377.             this.expandXIncludesToolStripMenuItem.Click += new System.EventHandler(this.expandXIncludesToolStripMenuItem_Click);
  1378.             // 
  1379.             // toolStripMenuItem6
  1380.             // 
  1381.             this.toolStripMenuItem6.Name = "toolStripMenuItem6";
  1382.             resources.ApplyResources(this.toolStripMenuItem6, "toolStripMenuItem6");
  1383.             // 
  1384.             // nudgeToolStripMenuItem
  1385.             // 
  1386.             this.nudgeToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
  1387.             this.upToolStripMenuItem,
  1388.             this.downToolStripMenuItem,
  1389.             this.leftToolStripMenuItem,
  1390.             this.rightToolStripMenuItem});
  1391.             this.nudgeToolStripMenuItem.Name = "nudgeToolStripMenuItem";
  1392.             resources.ApplyResources(this.nudgeToolStripMenuItem, "nudgeToolStripMenuItem");
  1393.             // 
  1394.             // upToolStripMenuItem
  1395.             // 
  1396.             resources.ApplyResources(this.upToolStripMenuItem, "upToolStripMenuItem");
  1397.             this.upToolStripMenuItem.Name = "upToolStripMenuItem";
  1398.             this.upToolStripMenuItem.Click += new System.EventHandler(this.upToolStripMenuItem_Click);
  1399.             // 
  1400.             // downToolStripMenuItem
  1401.             // 
  1402.             resources.ApplyResources(this.downToolStripMenuItem, "downToolStripMenuItem");
  1403.             this.downToolStripMenuItem.Name = "downToolStripMenuItem";
  1404.             this.downToolStripMenuItem.Click += new System.EventHandler(this.downToolStripMenuItem_Click);
  1405.             // 
  1406.             // leftToolStripMenuItem
  1407.             // 
  1408.             resources.ApplyResources(this.leftToolStripMenuItem, "leftToolStripMenuItem");
  1409.             this.leftToolStripMenuItem.Name = "leftToolStripMenuItem";
  1410.             this.leftToolStripMenuItem.Click += new System.EventHandler(this.leftToolStripMenuItem_Click);
  1411.             // 
  1412.             // rightToolStripMenuItem
  1413.             // 
  1414.             resources.ApplyResources(this.rightToolStripMenuItem, "rightToolStripMenuItem");
  1415.             this.rightToolStripMenuItem.Name = "rightToolStripMenuItem";
  1416.             this.rightToolStripMenuItem.Click += new System.EventHandler(this.rightToolStripMenuItem_Click);
  1417.             // 
  1418.             // toolStripMenuItem7
  1419.             // 
  1420.             this.toolStripMenuItem7.Name = "toolStripMenuItem7";
  1421.             resources.ApplyResources(this.toolStripMenuItem7, "toolStripMenuItem7");
  1422.             // 
  1423.             // findToolStripMenuItem
  1424.             // 
  1425.             resources.ApplyResources(this.findToolStripMenuItem, "findToolStripMenuItem");
  1426.             this.findToolStripMenuItem.Name = "findToolStripMenuItem";
  1427.             this.findToolStripMenuItem.Click += new System.EventHandler(this.findToolStripMenuItem_Click);
  1428.             // 
  1429.             // replaceToolStripMenuItem
  1430.             // 
  1431.             resources.ApplyResources(this.replaceToolStripMenuItem, "replaceToolStripMenuItem");
  1432.             this.replaceToolStripMenuItem.Name = "replaceToolStripMenuItem";
  1433.             this.replaceToolStripMenuItem.Click += new System.EventHandler(this.replaceToolStripMenuItem_Click);
  1434.             // 
  1435.             // incrementalSearchToolStripMenuItem
  1436.             // 
  1437.             resources.ApplyResources(this.incrementalSearchToolStripMenuItem, "incrementalSearchToolStripMenuItem");
  1438.             this.incrementalSearchToolStripMenuItem.Name = "incrementalSearchToolStripMenuItem";
  1439.             this.incrementalSearchToolStripMenuItem.Click += new System.EventHandler(this.incrementalSearchToolStripMenuItem_Click);
  1440.             // 
  1441.             // viewToolStripMenuItem
  1442.             // 
  1443.             this.viewToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
  1444.             this.expandAllToolStripMenuItem,
  1445.             this.collapseAllToolStripMenuItem,
  1446.             this.toolStripMenuItem8,
  1447.             this.statusBarToolStripMenuItem,
  1448.             this.toolStripMenuItem9,
  1449.             this.sourceToolStripMenuItem,
  1450.             this.optionsToolStripMenuItem,
  1451.             this.schemasToolStripMenuItem,
  1452.             this.toolStripMenuItem11,
  1453.             this.nextErrorToolStripMenuItem,
  1454.             this.toolStripSeparator2,
  1455.             this.compareXMLFilesToolStripMenuItem});
  1456.             this.viewToolStripMenuItem.Name = "viewToolStripMenuItem";
  1457.             resources.ApplyResources(this.viewToolStripMenuItem, "viewToolStripMenuItem");
  1458.             // 
  1459.             // expandAllToolStripMenuItem
  1460.             // 
  1461.             resources.ApplyResources(this.expandAllToolStripMenuItem, "expandAllToolStripMenuItem");
  1462.             this.expandAllToolStripMenuItem.Name = "expandAllToolStripMenuItem";
  1463.             this.expandAllToolStripMenuItem.Click += new System.EventHandler(this.expandAllToolStripMenuItem_Click);
  1464.             // 
  1465.             // collapseAllToolStripMenuItem
  1466.             // 
  1467.             resources.ApplyResources(this.collapseAllToolStripMenuItem, "collapseAllToolStripMenuItem");
  1468.             this.collapseAllToolStripMenuItem.Name = "collapseAllToolStripMenuItem";
  1469.             this.collapseAllToolStripMenuItem.Click += new System.EventHandler(this.collapseAllToolStripMenuItem_Click);
  1470.             // 
  1471.             // toolStripMenuItem8
  1472.             // 
  1473.             this.toolStripMenuItem8.Name = "toolStripMenuItem8";
  1474.             resources.ApplyResources(this.toolStripMenuItem8, "toolStripMenuItem8");
  1475.             // 
  1476.             // statusBarToolStripMenuItem
  1477.             // 
  1478.             resources.ApplyResources(this.statusBarToolStripMenuItem, "statusBarToolStripMenuItem");
  1479.             this.statusBarToolStripMenuItem.Name = "statusBarToolStripMenuItem";
  1480.             this.statusBarToolStripMenuItem.Click += new System.EventHandler(this.statusBarToolStripMenuItem_Click);
  1481.             // 
  1482.             // toolStripMenuItem9
  1483.             // 
  1484.             this.toolStripMenuItem9.Name = "toolStripMenuItem9";
  1485.             resources.ApplyResources(this.toolStripMenuItem9, "toolStripMenuItem9");
  1486.             // 
  1487.             // sourceToolStripMenuItem
  1488.             // 
  1489.             resources.ApplyResources(this.sourceToolStripMenuItem, "sourceToolStripMenuItem");
  1490.             this.sourceToolStripMenuItem.Name = "sourceToolStripMenuItem";
  1491.             this.sourceToolStripMenuItem.Click += new System.EventHandler(this.sourceToolStripMenuItem_Click);
  1492.             // 
  1493.             // optionsToolStripMenuItem
  1494.             // 
  1495.             resources.ApplyResources(this.optionsToolStripMenuItem, "optionsToolStripMenuItem");
  1496.             this.optionsToolStripMenuItem.Name = "optionsToolStripMenuItem";
  1497.             this.optionsToolStripMenuItem.Click += new System.EventHandler(this.optionsToolStripMenuItem_Click);
  1498.             // 
  1499.             // schemasToolStripMenuItem
  1500.             // 
  1501.             resources.ApplyResources(this.schemasToolStripMenuItem, "schemasToolStripMenuItem");
  1502.             this.schemasToolStripMenuItem.Name = "schemasToolStripMenuItem";
  1503.             this.schemasToolStripMenuItem.Click += new System.EventHandler(this.schemasToolStripMenuItem_Click);
  1504.             // 
  1505.             // toolStripMenuItem11
  1506.             // 
  1507.             this.toolStripMenuItem11.Name = "toolStripMenuItem11";
  1508.             resources.ApplyResources(this.toolStripMenuItem11, "toolStripMenuItem11");
  1509.             // 
  1510.             // nextErrorToolStripMenuItem
  1511.             // 
  1512.             resources.ApplyResources(this.nextErrorToolStripMenuItem, "nextErrorToolStripMenuItem");
  1513.             this.nextErrorToolStripMenuItem.Name = "nextErrorToolStripMenuItem";
  1514.             this.nextErrorToolStripMenuItem.Click += new System.EventHandler(this.nextErrorToolStripMenuItem_Click);
  1515.             // 
  1516.             // toolStripSeparator2
  1517.             // 
  1518.             this.toolStripSeparator2.Name = "toolStripSeparator2";
  1519.             resources.ApplyResources(this.toolStripSeparator2, "toolStripSeparator2");
  1520.             // 
  1521.             // compareXMLFilesToolStripMenuItem
  1522.             // 
  1523.             resources.ApplyResources(this.compareXMLFilesToolStripMenuItem, "compareXMLFilesToolStripMenuItem");
  1524.             this.compareXMLFilesToolStripMenuItem.Name = "compareXMLFilesToolStripMenuItem";
  1525.             this.compareXMLFilesToolStripMenuItem.Click += new System.EventHandler(this.compareXMLFilesToolStripMenuItem_Click);
  1526.             // 
  1527.             // insertToolStripMenuItem
  1528.             // 
  1529.             resources.ApplyResources(this.insertToolStripMenuItem, "insertToolStripMenuItem");
  1530.             this.insertToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
  1531.             this.elementToolStripMenuItem,
  1532.             this.attributeToolStripMenuItem,
  1533.             this.textToolStripMenuItem,
  1534.             this.commentToolStripMenuItem,
  1535.             this.CDATAToolStripMenuItem,
  1536.             this.PIToolStripMenuItem});
  1537.             this.insertToolStripMenuItem.Name = "insertToolStripMenuItem";
  1538.             // 
  1539.             // elementToolStripMenuItem
  1540.             // 
  1541.             this.elementToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
  1542.             this.elementBeforeToolStripMenuItem,
  1543.             this.elementAfterToolStripMenuItem,
  1544.             this.elementChildToolStripMenuItem});
  1545.             this.elementToolStripMenuItem.Name = "elementToolStripMenuItem";
  1546.             resources.ApplyResources(this.elementToolStripMenuItem, "elementToolStripMenuItem");
  1547.             // 
  1548.             // elementBeforeToolStripMenuItem
  1549.             // 
  1550.             resources.ApplyResources(this.elementBeforeToolStripMenuItem, "elementBeforeToolStripMenuItem");
  1551.             this.elementBeforeToolStripMenuItem.Name = "elementBeforeToolStripMenuItem";
  1552.             this.elementBeforeToolStripMenuItem.Click += new System.EventHandler(this.elementBeforeToolStripMenuItem_Click);
  1553.             // 
  1554.             // elementAfterToolStripMenuItem
  1555.             // 
  1556.             resources.ApplyResources(this.elementAfterToolStripMenuItem, "elementAfterToolStripMenuItem");
  1557.             this.elementAfterToolStripMenuItem.Name = "elementAfterToolStripMenuItem";
  1558.             this.elementAfterToolStripMenuItem.Click += new System.EventHandler(this.elementAfterToolStripMenuItem_Click);
  1559.             // 
  1560.             // elementChildToolStripMenuItem
  1561.             // 
  1562.             resources.ApplyResources(this.elementChildToolStripMenuItem, "elementChildToolStripMenuItem");
  1563.             this.elementChildToolStripMenuItem.Name = "elementChildToolStripMenuItem";
  1564.             this.elementChildToolStripMenuItem.Click += new System.EventHandler(this.elementChildToolStripMenuItem_Click);
  1565.             // 
  1566.             // attributeToolStripMenuItem
  1567.             // 
  1568.             this.attributeToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
  1569.             this.attributeBeforeToolStripMenuItem,
  1570.             this.attributeAfterToolStripMenuItem,
  1571.             this.attributeChildToolStripMenuItem});
  1572.             this.attributeToolStripMenuItem.Name = "attributeToolStripMenuItem";
  1573.             resources.ApplyResources(this.attributeToolStripMenuItem, "attributeToolStripMenuItem");
  1574.             // 
  1575.             // attributeBeforeToolStripMenuItem
  1576.             // 
  1577.             resources.ApplyResources(this.attributeBeforeToolStripMenuItem, "attributeBeforeToolStripMenuItem");
  1578.             this.attributeBeforeToolStripMenuItem.Name = "attributeBeforeToolStripMenuItem";
  1579.             this.attributeBeforeToolStripMenuItem.Click += new System.EventHandler(this.attributeBeforeToolStripMenuItem_Click);
  1580.             // 
  1581.             // attributeAfterToolStripMenuItem
  1582.             // 
  1583.             resources.ApplyResources(this.attributeAfterToolStripMenuItem, "attributeAfterToolStripMenuItem");
  1584.             this.attributeAfterToolStripMenuItem.Name = "attributeAfterToolStripMenuItem";
  1585.             this.attributeAfterToolStripMenuItem.Click += new System.EventHandler(this.attributeAfterToolStripMenuItem_Click);
  1586.             // 
  1587.             // attributeChildToolStripMenuItem
  1588.             // 
  1589.             resources.ApplyResources(this.attributeChildToolStripMenuItem, "attributeChildToolStripMenuItem");
  1590.             this.attributeChildToolStripMenuItem.Name = "attributeChildToolStripMenuItem";
  1591.             this.attributeChildToolStripMenuItem.Click += new System.EventHandler(this.attributeChildToolStripMenuItem_Click);
  1592.             // 
  1593.             // textToolStripMenuItem
  1594.             // 
  1595.             this.textToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
  1596.             this.textBeforeToolStripMenuItem,
  1597.             this.textAfterToolStripMenuItem,
  1598.             this.textChildToolStripMenuItem});
  1599.             this.textToolStripMenuItem.Name = "textToolStripMenuItem";
  1600.             resources.ApplyResources(this.textToolStripMenuItem, "textToolStripMenuItem");
  1601.             // 
  1602.             // textBeforeToolStripMenuItem
  1603.             // 
  1604.             resources.ApplyResources(this.textBeforeToolStripMenuItem, "textBeforeToolStripMenuItem");
  1605.             this.textBeforeToolStripMenuItem.Name = "textBeforeToolStripMenuItem";
  1606.             this.textBeforeToolStripMenuItem.Click += new System.EventHandler(this.textBeforeToolStripMenuItem_Click);
  1607.             // 
  1608.             // textAfterToolStripMenuItem
  1609.             //