1
ļ»æ// Copyright (c) 2010-2013 AlphaSierraPapa for the SharpDevelop Team
3
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
4
// software and associated documentation files (the "Software"), to deal in the Software
5
// without restriction, including without limitation the rights to use, copy, modify, merge,
6
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
7
// to whom the Software is furnished to do so, subject to the following conditions:
9
// The above copyright notice and this permission notice shall be included in all copies or
10
// substantial portions of the Software.
12
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
13
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
14
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
15
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
16
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
17
// DEALINGS IN THE SOFTWARE.
19
namespace ICSharpCode.NRefactory.Demo
24
/// Designer variable used to keep track of non-visual components.
26
private System.ComponentModel.IContainer components = null;
29
/// Disposes resources used by the control.
31
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
32
protected override void Dispose(bool disposing)
35
if (components != null) {
39
base.Dispose(disposing);
43
/// This method is required for Windows Forms designer support.
44
/// Do not change the method contents inside the source code editor. The Forms designer might
45
/// not be able to load this method if it was changed manually.
47
private void InitializeComponent()
49
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
50
this.csharpCodeTextBox = new System.Windows.Forms.TextBox();
51
this.findReferencesButton = new System.Windows.Forms.Button();
52
this.resolveButton = new System.Windows.Forms.Button();
53
this.csharpTreeView = new System.Windows.Forms.TreeView();
54
this.csharpGenerateCodeButton = new System.Windows.Forms.Button();
55
this.csharpParseButton = new System.Windows.Forms.Button();
56
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
57
this.splitContainer1.Panel1.SuspendLayout();
58
this.splitContainer1.Panel2.SuspendLayout();
59
this.splitContainer1.SuspendLayout();
64
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
65
this.splitContainer1.Location = new System.Drawing.Point(0, 0);
66
this.splitContainer1.Name = "splitContainer1";
67
this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
69
// splitContainer1.Panel1
71
this.splitContainer1.Panel1.Controls.Add(this.csharpCodeTextBox);
73
// splitContainer1.Panel2
75
this.splitContainer1.Panel2.Controls.Add(this.findReferencesButton);
76
this.splitContainer1.Panel2.Controls.Add(this.resolveButton);
77
this.splitContainer1.Panel2.Controls.Add(this.csharpTreeView);
78
this.splitContainer1.Panel2.Controls.Add(this.csharpGenerateCodeButton);
79
this.splitContainer1.Panel2.Controls.Add(this.csharpParseButton);
80
this.splitContainer1.Size = new System.Drawing.Size(475, 406);
81
this.splitContainer1.SplitterDistance = 178;
82
this.splitContainer1.TabIndex = 1;
86
this.csharpCodeTextBox.AcceptsReturn = true;
87
this.csharpCodeTextBox.AcceptsTab = true;
88
this.csharpCodeTextBox.Dock = System.Windows.Forms.DockStyle.Fill;
89
this.csharpCodeTextBox.Font = new System.Drawing.Font("Courier New", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
90
this.csharpCodeTextBox.HideSelection = false;
91
this.csharpCodeTextBox.Location = new System.Drawing.Point(0, 0);
92
this.csharpCodeTextBox.MaxLength = 99999999;
93
this.csharpCodeTextBox.Multiline = true;
94
this.csharpCodeTextBox.Name = "csharpCodeTextBox";
95
this.csharpCodeTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Both;
96
this.csharpCodeTextBox.Size = new System.Drawing.Size(475, 178);
97
this.csharpCodeTextBox.TabIndex = 0;
98
this.csharpCodeTextBox.Text = "using System;\r\nusing System.Linq;\r\nclass Test\r\n{\r\n public void Main(string[] a" +
99
"rgs)\r\n {\r\n Console.WriteLine(\"Hello, World\");\r\n }\r\n}";
100
this.csharpCodeTextBox.WordWrap = false;
101
this.csharpCodeTextBox.TextChanged += new System.EventHandler(this.CsharpCodeTextBoxTextChanged);
103
// findReferencesButton
105
this.findReferencesButton.Anchor = System.Windows.Forms.AnchorStyles.Top;
106
this.findReferencesButton.Enabled = false;
107
this.findReferencesButton.Location = new System.Drawing.Point(344, 4);
108
this.findReferencesButton.Name = "findReferencesButton";
109
this.findReferencesButton.Size = new System.Drawing.Size(100, 23);
110
this.findReferencesButton.TabIndex = 4;
111
this.findReferencesButton.Text = "Find References";
112
this.findReferencesButton.UseVisualStyleBackColor = true;
113
this.findReferencesButton.Click += new System.EventHandler(this.FindReferencesButtonClick);
117
this.resolveButton.Anchor = System.Windows.Forms.AnchorStyles.Top;
118
this.resolveButton.Location = new System.Drawing.Point(132, 4);
119
this.resolveButton.Name = "resolveButton";
120
this.resolveButton.Size = new System.Drawing.Size(100, 23);
121
this.resolveButton.TabIndex = 3;
122
this.resolveButton.Text = "Resolve";
123
this.resolveButton.UseVisualStyleBackColor = true;
124
this.resolveButton.Click += new System.EventHandler(this.ResolveButtonClick);
128
this.csharpTreeView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
129
| System.Windows.Forms.AnchorStyles.Left)
130
| System.Windows.Forms.AnchorStyles.Right)));
131
this.csharpTreeView.HideSelection = false;
132
this.csharpTreeView.Location = new System.Drawing.Point(3, 32);
133
this.csharpTreeView.Name = "csharpTreeView";
134
this.csharpTreeView.Size = new System.Drawing.Size(467, 189);
135
this.csharpTreeView.TabIndex = 2;
136
this.csharpTreeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.CSharpTreeViewAfterSelect);
138
// csharpGenerateCodeButton
140
this.csharpGenerateCodeButton.Anchor = System.Windows.Forms.AnchorStyles.Top;
141
this.csharpGenerateCodeButton.Location = new System.Drawing.Point(238, 4);
142
this.csharpGenerateCodeButton.Name = "csharpGenerateCodeButton";
143
this.csharpGenerateCodeButton.Size = new System.Drawing.Size(100, 23);
144
this.csharpGenerateCodeButton.TabIndex = 1;
145
this.csharpGenerateCodeButton.Text = "\u2191 Generate \u2191";
146
this.csharpGenerateCodeButton.UseVisualStyleBackColor = true;
147
this.csharpGenerateCodeButton.Click += new System.EventHandler(this.CSharpGenerateCodeButtonClick);
151
this.csharpParseButton.Anchor = System.Windows.Forms.AnchorStyles.Top;
152
this.csharpParseButton.Location = new System.Drawing.Point(26, 4);
153
this.csharpParseButton.Name = "csharpParseButton";
154
this.csharpParseButton.Size = new System.Drawing.Size(100, 23);
155
this.csharpParseButton.TabIndex = 0;
156
this.csharpParseButton.Text = "\u2193 Parse \u2193";
157
this.csharpParseButton.UseVisualStyleBackColor = true;
158
this.csharpParseButton.Click += new System.EventHandler(this.CSharpParseButtonClick);
162
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
163
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
164
this.Controls.Add(this.splitContainer1);
165
this.Name = "CSDemo";
166
this.Size = new System.Drawing.Size(475, 406);
167
this.splitContainer1.Panel1.ResumeLayout(false);
168
this.splitContainer1.Panel1.PerformLayout();
169
this.splitContainer1.Panel2.ResumeLayout(false);
170
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
171
this.splitContainer1.ResumeLayout(false);
172
this.ResumeLayout(false);
174
private System.Windows.Forms.Button findReferencesButton;
175
private System.Windows.Forms.Button csharpParseButton;
176
private System.Windows.Forms.Button csharpGenerateCodeButton;
177
private System.Windows.Forms.TreeView csharpTreeView;
178
private System.Windows.Forms.Button resolveButton;
179
private System.Windows.Forms.TextBox csharpCodeTextBox;
180
private System.Windows.Forms.SplitContainer splitContainer1;