2
using System.Collections;
3
using System.ComponentModel;
6
using System.Windows.Forms;
11
/// Summary description for UserControl1.
13
public class PropertyEditor : System.Windows.Forms.UserControl
15
public System.Windows.Forms.ComboBox cbType;
16
public System.Windows.Forms.TextBox tbName;
17
private System.Windows.Forms.Label lName;
18
private System.Windows.Forms.Label lType;
19
private System.Windows.Forms.Label lValue;
20
private System.Windows.Forms.TextBox tbValue;
21
private System.Windows.Forms.CheckBox cbLocal;
22
private System.Windows.Forms.CheckBox cbMultiValued;
24
/// Required designer variable.
26
private System.ComponentModel.Container components = null;
28
public PropertyEditor()
30
// This call is required by the Windows.Forms Form Designer.
31
InitializeComponent();
33
// TODO: Add any initialization after the InitializeComponent call
38
/// Clean up any resources being used.
40
protected override void Dispose( bool disposing )
44
if(components != null)
49
base.Dispose( disposing );
52
public new string Name
74
//cbType.SelectedText = value;
95
return cbLocal.Checked;
99
cbLocal.Checked = value;
103
public bool MultiValued
107
return cbMultiValued.Checked;
111
cbMultiValued.Checked = value;
115
#region Component Designer generated code
117
/// Required method for Designer support - do not modify
118
/// the contents of this method with the code editor.
120
private void InitializeComponent()
122
this.cbType = new System.Windows.Forms.ComboBox();
123
this.tbName = new System.Windows.Forms.TextBox();
124
this.lName = new System.Windows.Forms.Label();
125
this.lType = new System.Windows.Forms.Label();
126
this.lValue = new System.Windows.Forms.Label();
127
this.tbValue = new System.Windows.Forms.TextBox();
128
this.cbLocal = new System.Windows.Forms.CheckBox();
129
this.cbMultiValued = new System.Windows.Forms.CheckBox();
130
this.SuspendLayout();
134
this.cbType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
135
this.cbType.Items.AddRange(new object[] {
153
this.cbType.Location = new System.Drawing.Point(72, 56);
154
this.cbType.MaxDropDownItems = 17;
155
this.cbType.Name = "cbType";
156
this.cbType.Size = new System.Drawing.Size(296, 21);
157
this.cbType.Sorted = true;
158
this.cbType.TabIndex = 3;
162
this.tbName.Location = new System.Drawing.Point(72, 24);
163
this.tbName.Name = "tbName";
164
this.tbName.Size = new System.Drawing.Size(296, 20);
165
this.tbName.TabIndex = 1;
166
this.tbName.Text = "";
170
this.lName.Location = new System.Drawing.Point(8, 24);
171
this.lName.Name = "lName";
172
this.lName.Size = new System.Drawing.Size(40, 23);
173
this.lName.TabIndex = 0;
174
this.lName.Text = "Name";
178
this.lType.Location = new System.Drawing.Point(8, 56);
179
this.lType.Name = "lType";
180
this.lType.Size = new System.Drawing.Size(40, 23);
181
this.lType.TabIndex = 2;
182
this.lType.Text = "Type";
186
this.lValue.Location = new System.Drawing.Point(8, 88);
187
this.lValue.Name = "lValue";
188
this.lValue.Size = new System.Drawing.Size(40, 23);
189
this.lValue.TabIndex = 4;
190
this.lValue.Text = "Value";
194
this.tbValue.Location = new System.Drawing.Point(72, 88);
195
this.tbValue.Name = "tbValue";
196
this.tbValue.Size = new System.Drawing.Size(296, 20);
197
this.tbValue.TabIndex = 5;
198
this.tbValue.Text = "";
202
this.cbLocal.Location = new System.Drawing.Point(72, 120);
203
this.cbLocal.Name = "cbLocal";
204
this.cbLocal.TabIndex = 6;
205
this.cbLocal.Text = "Local";
209
this.cbMultiValued.Location = new System.Drawing.Point(72, 144);
210
this.cbMultiValued.Name = "cbMultiValued";
211
this.cbMultiValued.TabIndex = 7;
212
this.cbMultiValued.Text = "Multi Valued";
216
this.Controls.Add(this.cbMultiValued);
217
this.Controls.Add(this.cbLocal);
218
this.Controls.Add(this.tbValue);
219
this.Controls.Add(this.lValue);
220
this.Controls.Add(this.lType);
221
this.Controls.Add(this.lName);
222
this.Controls.Add(this.tbName);
223
this.Controls.Add(this.cbType);
224
this.Name = "PropertyEditor";
225
this.Size = new System.Drawing.Size(400, 176);
226
this.ResumeLayout(false);
231
private void cbFlags_SelectedIndexChanged(object sender, System.EventArgs e)
236
private void lFlags_Click(object sender, System.EventArgs e)