~ifolder-dev/simias/trunk-packaging

« back to all changes in this revision

Viewing changes to tools/FormsStoreBrowser/.svn/text-base/PropertyEditor.cs.svn-base

  • Committer: Jorge O. Castro
  • Date: 2007-12-03 06:56:46 UTC
  • Revision ID: jorge@ubuntu.com-20071203065646-mupcnjcwgm5mnhyt
* Remove a bunch of .svn directories we no longer need.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
using System;
2
 
using System.Collections;
3
 
using System.ComponentModel;
4
 
using System.Drawing;
5
 
using System.Data;
6
 
using System.Windows.Forms;
7
 
 
8
 
namespace StoreBrowser
9
 
{
10
 
        /// <summary>
11
 
        /// Summary description for UserControl1.
12
 
        /// </summary>
13
 
        public class PropertyEditor : System.Windows.Forms.UserControl
14
 
        {
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;
23
 
                /// <summary> 
24
 
                /// Required designer variable.
25
 
                /// </summary>
26
 
                private System.ComponentModel.Container components = null;
27
 
 
28
 
                public PropertyEditor()
29
 
                {
30
 
                        // This call is required by the Windows.Forms Form Designer.
31
 
                        InitializeComponent();
32
 
 
33
 
                        // TODO: Add any initialization after the InitializeComponent call
34
 
 
35
 
                }
36
 
 
37
 
                /// <summary> 
38
 
                /// Clean up any resources being used.
39
 
                /// </summary>
40
 
                protected override void Dispose( bool disposing )
41
 
                {
42
 
                        if( disposing )
43
 
                        {
44
 
                                if(components != null)
45
 
                                {
46
 
                                        components.Dispose();
47
 
                                }
48
 
                        }
49
 
                        base.Dispose( disposing );
50
 
                }
51
 
 
52
 
                public new string Name
53
 
                {
54
 
                        get
55
 
                        {
56
 
                                return tbName.Text;
57
 
                        }
58
 
 
59
 
                        set
60
 
                        {
61
 
                                tbName.Text = value;
62
 
                        }
63
 
                }
64
 
 
65
 
                public string Type
66
 
                {
67
 
                        get
68
 
                        {
69
 
                                return cbType.Text;
70
 
                        }
71
 
                        set
72
 
                        {
73
 
                                cbType.Text = value;
74
 
                                //cbType.SelectedText = value;
75
 
                                //cbType.Refresh();
76
 
                        }
77
 
                }
78
 
 
79
 
                public string Value
80
 
                {
81
 
                        get
82
 
                        {
83
 
                                return tbValue.Text;
84
 
                        }
85
 
                        set
86
 
                        {
87
 
                                tbValue.Text = value;
88
 
                        }
89
 
                }
90
 
 
91
 
                public bool Local
92
 
                {
93
 
                        get
94
 
                        {
95
 
                                return cbLocal.Checked;
96
 
                        }
97
 
                        set
98
 
                        {
99
 
                                cbLocal.Checked = value;
100
 
                        }
101
 
                }
102
 
 
103
 
                public bool MultiValued
104
 
                {
105
 
                        get
106
 
                        {
107
 
                                return cbMultiValued.Checked;
108
 
                        }
109
 
                        set
110
 
                        {
111
 
                                cbMultiValued.Checked = value;
112
 
                        }
113
 
                }
114
 
 
115
 
                #region Component Designer generated code
116
 
                /// <summary> 
117
 
                /// Required method for Designer support - do not modify 
118
 
                /// the contents of this method with the code editor.
119
 
                /// </summary>
120
 
                private void InitializeComponent()
121
 
                {
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();
131
 
                        // 
132
 
                        // cbType
133
 
                        // 
134
 
                        this.cbType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
135
 
                        this.cbType.Items.AddRange(new object[] {
136
 
                                                                                                                "Boolean",
137
 
                                                                                                                "Byte",
138
 
                                                                                                                "Char",
139
 
                                                                                                                "DateTime",
140
 
                                                                                                                "Int16",
141
 
                                                                                                                "Int32",
142
 
                                                                                                                "Int64",
143
 
                                                                                                                "Relationship",
144
 
                                                                                                                "SByte",
145
 
                                                                                                                "Single",
146
 
                                                                                                                "String",
147
 
                                                                                                                "TimeSpan",
148
 
                                                                                                                "UInt16",
149
 
                                                                                                                "UInt32",
150
 
                                                                                                                "UInt64",
151
 
                                                                                                                "Uri",
152
 
                                                                                                                "XmlDocument"});
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;
159
 
                        // 
160
 
                        // tbName
161
 
                        // 
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 = "";
167
 
                        // 
168
 
                        // lName
169
 
                        // 
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";
175
 
                        // 
176
 
                        // lType
177
 
                        // 
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";
183
 
                        // 
184
 
                        // lValue
185
 
                        // 
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";
191
 
                        // 
192
 
                        // tbValue
193
 
                        // 
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 = "";
199
 
                        // 
200
 
                        // cbLocal
201
 
                        // 
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";
206
 
                        // 
207
 
                        // cbMultiValued
208
 
                        // 
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";
213
 
                        // 
214
 
                        // PropertyEditor
215
 
                        // 
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);
227
 
 
228
 
                }
229
 
                #endregion
230
 
 
231
 
                private void cbFlags_SelectedIndexChanged(object sender, System.EventArgs e)
232
 
                {
233
 
                
234
 
                }
235
 
 
236
 
                private void lFlags_Click(object sender, System.EventArgs e)
237
 
                {
238
 
                
239
 
                }
240
 
                
241
 
        }
242
 
}