3 partial class PersonForm
8 private System.ComponentModel.IContainer components =
null;
14 protected override void Dispose(
bool disposing)
16 if (disposing && (components !=
null))
20 base.Dispose(disposing);
23 #region Windows Form Designer generated code
29 private void InitializeComponent()
31 this.components =
new System.ComponentModel.Container();
32 System.Windows.Forms.Label authLevelLabel;
33 System.Windows.Forms.Label firstNameLabel;
34 System.Windows.Forms.Label lastNameLabel;
35 System.Windows.Forms.Label middleNameLabel;
36 System.Windows.Forms.Label placeOfBirthLabel;
37 System.ComponentModel.ComponentResourceManager resources =
new System.ComponentModel.ComponentResourceManager(typeof(
PersonForm));
38 this.editablePersonBindingSource =
new System.Windows.Forms.BindingSource(this.components);
45 this.
SaveButton =
new System.Windows.Forms.Button();
46 this.
CloseButton =
new System.Windows.Forms.Button();
49 this.toolStrip1 =
new System.Windows.Forms.ToolStrip();
57 authLevelLabel =
new System.Windows.Forms.Label();
58 firstNameLabel =
new System.Windows.Forms.Label();
59 lastNameLabel =
new System.Windows.Forms.Label();
60 middleNameLabel =
new System.Windows.Forms.Label();
61 placeOfBirthLabel =
new System.Windows.Forms.Label();
62 ((System.ComponentModel.ISupportInitialize)(this.editablePersonBindingSource)).BeginInit();
63 this.toolStrip1.SuspendLayout();
70 authLevelLabel.AutoSize =
true;
71 authLevelLabel.Location =
new System.Drawing.Point(36, 27);
72 authLevelLabel.Name =
"authLevelLabel";
73 authLevelLabel.Size =
new System.Drawing.Size(61, 13);
74 authLevelLabel.TabIndex = 1;
75 authLevelLabel.Text =
"Auth Level:";
80 firstNameLabel.AutoSize =
true;
81 firstNameLabel.Location =
new System.Drawing.Point(36, 53);
82 firstNameLabel.Name =
"firstNameLabel";
83 firstNameLabel.Size =
new System.Drawing.Size(60, 13);
84 firstNameLabel.TabIndex = 3;
85 firstNameLabel.Text =
"First Name:";
90 lastNameLabel.AutoSize =
true;
91 lastNameLabel.Location =
new System.Drawing.Point(36, 79);
92 lastNameLabel.Name =
"lastNameLabel";
93 lastNameLabel.Size =
new System.Drawing.Size(61, 13);
94 lastNameLabel.TabIndex = 5;
95 lastNameLabel.Text =
"Last Name:";
100 middleNameLabel.AutoSize =
true;
101 middleNameLabel.Location =
new System.Drawing.Point(36, 105);
102 middleNameLabel.Name =
"middleNameLabel";
103 middleNameLabel.Size =
new System.Drawing.Size(72, 13);
104 middleNameLabel.TabIndex = 7;
105 middleNameLabel.Text =
"Middle Name:";
110 placeOfBirthLabel.AutoSize =
true;
111 placeOfBirthLabel.Location =
new System.Drawing.Point(36, 131);
112 placeOfBirthLabel.Name =
"placeOfBirthLabel";
113 placeOfBirthLabel.Size =
new System.Drawing.Size(75, 13);
114 placeOfBirthLabel.TabIndex = 9;
115 placeOfBirthLabel.Text =
"Place Of Birth:";
121 this.editablePersonBindingSource.CurrentItemChanged +=
new System.EventHandler(this.editablePersonBindingSource_CurrentItemChanged);
126 this.
authLevelTextBox.DataBindings.Add(
new System.Windows.Forms.Binding(
"Text",
this.editablePersonBindingSource,
"AuthLevel",
true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
135 this.
firstNameTextBox.DataBindings.Add(
new System.Windows.Forms.Binding(
"Text",
this.editablePersonBindingSource,
"FirstName",
true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
144 this.
lastNameTextBox.DataBindings.Add(
new System.Windows.Forms.Binding(
"Text",
this.editablePersonBindingSource,
"LastName",
true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
153 this.
middleNameTextBox.DataBindings.Add(
new System.Windows.Forms.Binding(
"Text",
this.editablePersonBindingSource,
"MiddleName",
true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
162 this.
placeOfBirthTextBox.DataBindings.Add(
new System.Windows.Forms.Binding(
"Text",
this.editablePersonBindingSource,
"PlaceOfBirth",
true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
172 this.cslaActionExtender1.SetDisableWhenUseless(this.
SaveButton,
true);
173 this.
SaveButton.Location =
new System.Drawing.Point(12, 182);
175 this.
SaveButton.Size =
new System.Drawing.Size(75, 23);
178 this.
SaveButton.UseVisualStyleBackColor =
true;
184 this.
CloseButton.Location =
new System.Drawing.Point(12, 211);
186 this.
CloseButton.Size =
new System.Drawing.Size(75, 23);
195 this.cslaActionExtender1.SetDisableWhenUseless(this.
CancelButton,
true);
196 this.
CancelButton.Location =
new System.Drawing.Point(93, 182);
198 this.
CancelButton.Size =
new System.Drawing.Size(75, 23);
217 this.toolStrip1.Items.AddRange(
new System.Windows.Forms.ToolStripItem[] {
218 this.saveToolStripButton,
219 this.cancelToolStripButton,
220 this.closeToolStripButton,
221 this.validateToolStripButton});
222 this.toolStrip1.Location =
new System.Drawing.Point(0, 0);
223 this.toolStrip1.Name =
"toolStrip1";
224 this.toolStrip1.Size =
new System.Drawing.Size(292, 25);
225 this.toolStrip1.TabIndex = 15;
226 this.toolStrip1.Text =
"toolStrip1";
232 this.
saveToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
233 this.
saveToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject(
"saveToolStripButton.Image")));
244 this.
cancelToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject(
"cancelToolStripButton.Image")));
254 this.
closeToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject(
"closeToolStripButton.Image")));
263 this.
validateToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject(
"validateToolStripButton.Image")));
271 this.cslaActionExtender1.DataSource = this.editablePersonBindingSource;
272 this.cslaActionExtender1.ObjectIsValidMessage =
"Object is valid";
276 this.cslaActionExtenderToolStrip1.DataSource = this.editablePersonBindingSource;
277 this.cslaActionExtenderToolStrip1.ObjectIsValidMessage =
"Object is valid";
282 this.AutoScaleDimensions =
new System.Drawing.SizeF(6F, 13F);
283 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
284 this.ClientSize =
new System.Drawing.Size(292, 273);
285 this.Controls.Add(this.toolStrip1);
290 this.Controls.Add(authLevelLabel);
292 this.Controls.Add(firstNameLabel);
294 this.Controls.Add(lastNameLabel);
296 this.Controls.Add(middleNameLabel);
298 this.Controls.Add(placeOfBirthLabel);
300 this.Name =
"PersonForm";
301 this.Text =
"PersonForm";
302 ((System.ComponentModel.ISupportInitialize)(this.editablePersonBindingSource)).EndInit();
303 this.toolStrip1.ResumeLayout(
false);
304 this.toolStrip1.PerformLayout();
306 this.ResumeLayout(
false);
307 this.PerformLayout();
313 private System.Windows.Forms.BindingSource editablePersonBindingSource;
323#pragma warning disable CS0108
325#pragma warning restore CS0108
329 private System.Windows.Forms.ToolStrip toolStrip1;
BindingSourceRefresh contains functionality for refreshing the data bound to controls on Host as well...
Extender control providing automation around data binding to CSLA .NET business objects.
Windows Forms extender control that automatically enables and disables detail form controls based on ...