|
|
|
|
@ -33,11 +33,9 @@ namespace ICSharpCode.NRefactory.Demo
@@ -33,11 +33,9 @@ namespace ICSharpCode.NRefactory.Demo
|
|
|
|
|
{ |
|
|
|
|
this.splitContainer1 = new System.Windows.Forms.SplitContainer(); |
|
|
|
|
this.codeView = new System.Windows.Forms.TextBox(); |
|
|
|
|
this.editNodeButton = new System.Windows.Forms.Button(); |
|
|
|
|
this.clearSpecialsButton = new System.Windows.Forms.Button(); |
|
|
|
|
this.syntaxTree = new ICSharpCode.NRefactory.Demo.VBAstView(); |
|
|
|
|
this.generateCodeButton = new System.Windows.Forms.Button(); |
|
|
|
|
this.parseButton = new System.Windows.Forms.Button(); |
|
|
|
|
this.treeView = new System.Windows.Forms.TreeView(); |
|
|
|
|
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); |
|
|
|
|
this.splitContainer1.Panel1.SuspendLayout(); |
|
|
|
|
this.splitContainer1.Panel2.SuspendLayout(); |
|
|
|
|
@ -57,11 +55,9 @@ namespace ICSharpCode.NRefactory.Demo
@@ -57,11 +55,9 @@ namespace ICSharpCode.NRefactory.Demo
|
|
|
|
|
//
|
|
|
|
|
// splitContainer1.Panel2
|
|
|
|
|
//
|
|
|
|
|
this.splitContainer1.Panel2.Controls.Add(this.editNodeButton); |
|
|
|
|
this.splitContainer1.Panel2.Controls.Add(this.clearSpecialsButton); |
|
|
|
|
this.splitContainer1.Panel2.Controls.Add(this.syntaxTree); |
|
|
|
|
this.splitContainer1.Panel2.Controls.Add(this.generateCodeButton); |
|
|
|
|
this.splitContainer1.Panel2.Controls.Add(this.parseButton); |
|
|
|
|
this.splitContainer1.Panel2.Controls.Add(this.treeView); |
|
|
|
|
this.splitContainer1.Size = new System.Drawing.Size(462, 391); |
|
|
|
|
this.splitContainer1.SplitterDistance = 173; |
|
|
|
|
this.splitContainer1.TabIndex = 1; |
|
|
|
|
@ -79,64 +75,41 @@ namespace ICSharpCode.NRefactory.Demo
@@ -79,64 +75,41 @@ namespace ICSharpCode.NRefactory.Demo
|
|
|
|
|
this.codeView.ScrollBars = System.Windows.Forms.ScrollBars.Both; |
|
|
|
|
this.codeView.Size = new System.Drawing.Size(462, 173); |
|
|
|
|
this.codeView.TabIndex = 0; |
|
|
|
|
this.codeView.Text = "Imports System\r\nClass Test\r\n Public Sub Main(ByVal args As String())\r\n " + |
|
|
|
|
" Console.WriteLine(\"Hello, World\")\r\n End Sub\r\nEnd Class"; |
|
|
|
|
this.codeView.Text = "Option Explicit"; |
|
|
|
|
this.codeView.WordWrap = false; |
|
|
|
|
//
|
|
|
|
|
// editNodeButton
|
|
|
|
|
//
|
|
|
|
|
this.editNodeButton.Anchor = System.Windows.Forms.AnchorStyles.Top; |
|
|
|
|
this.editNodeButton.Location = new System.Drawing.Point(331, 2); |
|
|
|
|
this.editNodeButton.Name = "editNodeButton"; |
|
|
|
|
this.editNodeButton.Size = new System.Drawing.Size(100, 23); |
|
|
|
|
this.editNodeButton.TabIndex = 4; |
|
|
|
|
this.editNodeButton.Text = "Edit node"; |
|
|
|
|
this.editNodeButton.UseVisualStyleBackColor = true; |
|
|
|
|
this.editNodeButton.Click += new System.EventHandler(this.EditNodeButtonClick); |
|
|
|
|
//
|
|
|
|
|
// clearSpecialsButton
|
|
|
|
|
//
|
|
|
|
|
this.clearSpecialsButton.Anchor = System.Windows.Forms.AnchorStyles.Top; |
|
|
|
|
this.clearSpecialsButton.Location = new System.Drawing.Point(225, 2); |
|
|
|
|
this.clearSpecialsButton.Name = "clearSpecialsButton"; |
|
|
|
|
this.clearSpecialsButton.Size = new System.Drawing.Size(100, 23); |
|
|
|
|
this.clearSpecialsButton.TabIndex = 3; |
|
|
|
|
this.clearSpecialsButton.Text = "Clear 0 specials"; |
|
|
|
|
this.clearSpecialsButton.UseVisualStyleBackColor = true; |
|
|
|
|
this.clearSpecialsButton.Click += new System.EventHandler(this.ClearSpecialsButtonClick); |
|
|
|
|
//
|
|
|
|
|
// syntaxTree
|
|
|
|
|
//
|
|
|
|
|
this.syntaxTree.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
|
|
|
|
| System.Windows.Forms.AnchorStyles.Left) |
|
|
|
|
| System.Windows.Forms.AnchorStyles.Right))); |
|
|
|
|
this.syntaxTree.Location = new System.Drawing.Point(3, 32); |
|
|
|
|
this.syntaxTree.Name = "syntaxTree"; |
|
|
|
|
this.syntaxTree.Size = new System.Drawing.Size(459, 182); |
|
|
|
|
this.syntaxTree.TabIndex = 2; |
|
|
|
|
this.syntaxTree.Unit = null; |
|
|
|
|
//
|
|
|
|
|
// generateCodeButton
|
|
|
|
|
//
|
|
|
|
|
this.generateCodeButton.Anchor = System.Windows.Forms.AnchorStyles.Top; |
|
|
|
|
this.generateCodeButton.Location = new System.Drawing.Point(119, 2); |
|
|
|
|
this.generateCodeButton.Location = new System.Drawing.Point(225, 2); |
|
|
|
|
this.generateCodeButton.Name = "generateCodeButton"; |
|
|
|
|
this.generateCodeButton.Size = new System.Drawing.Size(100, 23); |
|
|
|
|
this.generateCodeButton.TabIndex = 1; |
|
|
|
|
this.generateCodeButton.Text = "Generate"; |
|
|
|
|
this.generateCodeButton.UseVisualStyleBackColor = true; |
|
|
|
|
this.generateCodeButton.Click += new System.EventHandler(this.GenerateCodeButtonClick); |
|
|
|
|
this.generateCodeButton.Click += new System.EventHandler(this.CSharpGenerateCodeButtonClick); |
|
|
|
|
//
|
|
|
|
|
// parseButton
|
|
|
|
|
//
|
|
|
|
|
this.parseButton.Anchor = System.Windows.Forms.AnchorStyles.Top; |
|
|
|
|
this.parseButton.Location = new System.Drawing.Point(13, 2); |
|
|
|
|
this.parseButton.Location = new System.Drawing.Point(119, 2); |
|
|
|
|
this.parseButton.Name = "parseButton"; |
|
|
|
|
this.parseButton.Size = new System.Drawing.Size(100, 23); |
|
|
|
|
this.parseButton.TabIndex = 0; |
|
|
|
|
this.parseButton.Text = "Parse"; |
|
|
|
|
this.parseButton.UseVisualStyleBackColor = true; |
|
|
|
|
this.parseButton.Click += new System.EventHandler(this.ParseButtonClick); |
|
|
|
|
this.parseButton.Click += new System.EventHandler(this.CSharpParseButtonClick); |
|
|
|
|
//
|
|
|
|
|
// treeView
|
|
|
|
|
//
|
|
|
|
|
this.treeView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
|
|
|
|
| System.Windows.Forms.AnchorStyles.Left) |
|
|
|
|
| System.Windows.Forms.AnchorStyles.Right))); |
|
|
|
|
this.treeView.Location = new System.Drawing.Point(3, 31); |
|
|
|
|
this.treeView.Name = "treeView"; |
|
|
|
|
this.treeView.Size = new System.Drawing.Size(459, 180); |
|
|
|
|
this.treeView.TabIndex = 0; |
|
|
|
|
this.treeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.CSharpTreeViewAfterSelect); |
|
|
|
|
//
|
|
|
|
|
// VBDemo
|
|
|
|
|
//
|
|
|
|
|
@ -152,10 +125,8 @@ namespace ICSharpCode.NRefactory.Demo
@@ -152,10 +125,8 @@ namespace ICSharpCode.NRefactory.Demo
|
|
|
|
|
this.splitContainer1.ResumeLayout(false); |
|
|
|
|
this.ResumeLayout(false); |
|
|
|
|
} |
|
|
|
|
private System.Windows.Forms.Button clearSpecialsButton; |
|
|
|
|
private System.Windows.Forms.Button editNodeButton; |
|
|
|
|
private ICSharpCode.NRefactory.Demo.VBAstView syntaxTree; |
|
|
|
|
private System.Windows.Forms.TextBox codeView; |
|
|
|
|
private System.Windows.Forms.TreeView treeView; |
|
|
|
|
private System.Windows.Forms.Button generateCodeButton; |
|
|
|
|
private System.Windows.Forms.Button parseButton; |
|
|
|
|
private System.Windows.Forms.SplitContainer splitContainer1; |
|
|
|
|
|