public DemoForm() { // // Required for Windows Form Designer support // InitializeComponent(); Noogen.Validation.ValidationRule vr = new Noogen.Validation.ValidationRule(); vr.CustomValidationMethod += new Noogen.Validation.CustomValidationEventHandler(vr_CustomValidationMethod); this.validationProvider1.SetValidationRule(this.textBox6, vr); }
public DemoForm() { // // Required for Windows Form Designer support // InitializeComponent(); Noogen.Validation.ValidationRule vr = new Noogen.Validation.ValidationRule(); vr.CustomValidationMethod +=new Noogen.Validation.CustomValidationEventHandler(vr_CustomValidationMethod); this.validationProvider1.SetValidationRule(this.textBox6, vr); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(DemoForm)); Noogen.Validation.ValidationRule validationRule1 = new Noogen.Validation.ValidationRule(); Noogen.Validation.ValidationRule validationRule2 = new Noogen.Validation.ValidationRule(); Noogen.Validation.ValidationRule validationRule3 = new Noogen.Validation.ValidationRule(); Noogen.Validation.ValidationRule validationRule4 = new Noogen.Validation.ValidationRule(); Noogen.Validation.ValidationRule validationRule5 = new Noogen.Validation.ValidationRule(); Noogen.Validation.ValidationRule validationRule6 = new Noogen.Validation.ValidationRule(); this.validationProvider1 = new Noogen.Validation.ValidationProvider(this.components); this.comboBox1 = new System.Windows.Forms.ComboBox(); this.textBox1 = new System.Windows.Forms.TextBox(); this.textBox2 = new System.Windows.Forms.TextBox(); this.textBox3 = new System.Windows.Forms.TextBox(); this.textBox4 = new System.Windows.Forms.TextBox(); this.textBox5 = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.ValidateButton = new System.Windows.Forms.Button(); this.textBox6 = new System.Windows.Forms.TextBox(); this.label7 = new System.Windows.Forms.Label(); this.SuspendLayout(); // // validationProvider1 // this.validationProvider1.BlinkStyle = System.Windows.Forms.ErrorBlinkStyle.BlinkIfDifferentError; this.validationProvider1.Icon = ((System.Drawing.Icon)(resources.GetObject("validationProvider1.Icon"))); // // comboBox1 // this.comboBox1.Items.AddRange(new object[] { "a", "b", "c", "d", "e", "f", "g" }); this.comboBox1.Location = new System.Drawing.Point(256, 48); this.comboBox1.Name = "comboBox1"; this.comboBox1.Size = new System.Drawing.Size(104, 21); this.comboBox1.TabIndex = 3; this.comboBox1.Text = "[Choose]"; validationRule1.ErrorMessage = "Please choose a value."; validationRule1.InitialValue = "[Choose]"; validationRule1.IsRequired = true; this.validationProvider1.SetValidationRule(this.comboBox1, validationRule1); // // textBox1 // this.textBox1.Location = new System.Drawing.Point(256, 24); this.textBox1.Name = "textBox1"; this.textBox1.TabIndex = 0; this.textBox1.Text = ""; validationRule2.ErrorMessage = "%ControlName% cannot be empty."; validationRule2.IsRequired = true; this.validationProvider1.SetValidationRule(this.textBox1, validationRule2); // // textBox2 // this.textBox2.Location = new System.Drawing.Point(256, 80); this.textBox2.Name = "textBox2"; this.textBox2.TabIndex = 1; this.textBox2.Text = "textBox2"; validationRule3.ErrorMessage = "%ControlName% cannot be equal to \"textBox2\"."; validationRule3.Operator = Noogen.Validation.ValidationCompareOperator.NotEqual; validationRule3.ValueToCompare = "textBox2"; this.validationProvider1.SetValidationRule(this.textBox2, validationRule3); // // textBox3 // this.textBox3.Location = new System.Drawing.Point(256, 104); this.textBox3.Name = "textBox3"; this.textBox3.TabIndex = 2; this.textBox3.Text = "textBox3"; validationRule4.DataType = Noogen.Validation.ValidationDataType.Double; validationRule4.ErrorMessage = "%ControlName% is not between 1 and 10."; validationRule4.MaximumValue = "10"; validationRule4.MinimumValue = "1"; this.validationProvider1.SetValidationRule(this.textBox3, validationRule4); // // textBox4 // this.textBox4.Location = new System.Drawing.Point(256, 144); this.textBox4.Name = "textBox4"; this.textBox4.Size = new System.Drawing.Size(104, 20); this.textBox4.TabIndex = 8; this.textBox4.Text = "textBox4"; validationRule5.ErrorMessage = "%ControlName% must be 7 characters long."; validationRule5.RegExPattern = "^\\S{7}$"; this.validationProvider1.SetValidationRule(this.textBox4, validationRule5); // // textBox5 // this.textBox5.Location = new System.Drawing.Point(144, 176); this.textBox5.Name = "textBox5"; this.textBox5.Size = new System.Drawing.Size(216, 20); this.textBox5.TabIndex = 10; this.textBox5.Text = "textBox5"; validationRule6.ErrorMessage = "%ControlName% is not a valid email address, mailbox@domain"; validationRule6.RegExPattern = "^([0-9a-zA-Z]([-.\\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\\w]*[0-9a-zA-Z]\\.)+[a-zA-Z]{2,9}" + ")$"; this.validationProvider1.SetValidationRule(this.textBox5, validationRule6); // // label1 // this.label1.Location = new System.Drawing.Point(24, 24); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(168, 23); this.label1.TabIndex = 4; this.label1.Text = "Required Validation: Not Empty"; // // label2 // this.label2.Location = new System.Drawing.Point(24, 80); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(216, 23); this.label2.TabIndex = 5; this.label2.Text = "Compare Validation: Not Equal textBox2"; // // label3 // this.label3.Location = new System.Drawing.Point(24, 112); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(184, 23); this.label3.TabIndex = 6; this.label3.Text = "Validate Range: Between 1 and 10"; // // label4 // this.label4.Location = new System.Drawing.Point(24, 48); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(224, 23); this.label4.TabIndex = 7; this.label4.Text = "Required Validation: Not [Choose]"; // // label5 // this.label5.Location = new System.Drawing.Point(24, 144); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(184, 23); this.label5.TabIndex = 9; this.label5.Text = "Regular Expression: Text Length=7"; // // label6 // this.label6.Location = new System.Drawing.Point(24, 176); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(112, 32); this.label6.TabIndex = 11; this.label6.Text = "Regular Expression: Email Addy"; // // ValidateButton // this.ValidateButton.Location = new System.Drawing.Point(280, 216); this.ValidateButton.Name = "ValidateButton"; this.ValidateButton.TabIndex = 12; this.ValidateButton.Text = "Validate"; this.ValidateButton.Click += new System.EventHandler(this.ValidateButton_Click); // // textBox6 // this.textBox6.Location = new System.Drawing.Point(136, 216); this.textBox6.Name = "textBox6"; this.textBox6.TabIndex = 13; this.textBox6.Text = "textBox6"; // // label7 // this.label7.Location = new System.Drawing.Point(24, 216); this.label7.Name = "label7"; this.label7.TabIndex = 14; this.label7.Text = "Custom Validation:"; // // DemoForm // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(392, 254); this.Controls.Add(this.label7); this.Controls.Add(this.textBox6); this.Controls.Add(this.ValidateButton); this.Controls.Add(this.label6); this.Controls.Add(this.textBox5); this.Controls.Add(this.label5); this.Controls.Add(this.textBox4); this.Controls.Add(this.label4); this.Controls.Add(this.label3); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.Controls.Add(this.comboBox1); this.Controls.Add(this.textBox3); this.Controls.Add(this.textBox2); this.Controls.Add(this.textBox1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "DemoForm"; this.Text = "Noogen ValidationProvider Demo"; this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(DemoForm)); Noogen.Validation.ValidationRule validationRule1 = new Noogen.Validation.ValidationRule(); Noogen.Validation.ValidationRule validationRule2 = new Noogen.Validation.ValidationRule(); Noogen.Validation.ValidationRule validationRule3 = new Noogen.Validation.ValidationRule(); Noogen.Validation.ValidationRule validationRule4 = new Noogen.Validation.ValidationRule(); Noogen.Validation.ValidationRule validationRule5 = new Noogen.Validation.ValidationRule(); Noogen.Validation.ValidationRule validationRule6 = new Noogen.Validation.ValidationRule(); this.validationProvider1 = new Noogen.Validation.ValidationProvider(this.components); this.comboBox1 = new System.Windows.Forms.ComboBox(); this.textBox1 = new System.Windows.Forms.TextBox(); this.textBox2 = new System.Windows.Forms.TextBox(); this.textBox3 = new System.Windows.Forms.TextBox(); this.textBox4 = new System.Windows.Forms.TextBox(); this.textBox5 = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.ValidateButton = new System.Windows.Forms.Button(); this.textBox6 = new System.Windows.Forms.TextBox(); this.label7 = new System.Windows.Forms.Label(); this.SuspendLayout(); // // validationProvider1 // this.validationProvider1.BlinkStyle = System.Windows.Forms.ErrorBlinkStyle.BlinkIfDifferentError; this.validationProvider1.Icon = ((System.Drawing.Icon)(resources.GetObject("validationProvider1.Icon"))); // // comboBox1 // this.comboBox1.Items.AddRange(new object[] { "a", "b", "c", "d", "e", "f", "g"}); this.comboBox1.Location = new System.Drawing.Point(256, 48); this.comboBox1.Name = "comboBox1"; this.comboBox1.Size = new System.Drawing.Size(104, 21); this.comboBox1.TabIndex = 3; this.comboBox1.Text = "[Choose]"; validationRule1.ErrorMessage = "Please choose a value."; validationRule1.InitialValue = "[Choose]"; validationRule1.IsRequired = true; this.validationProvider1.SetValidationRule(this.comboBox1, validationRule1); // // textBox1 // this.textBox1.Location = new System.Drawing.Point(256, 24); this.textBox1.Name = "textBox1"; this.textBox1.TabIndex = 0; this.textBox1.Text = ""; validationRule2.ErrorMessage = "%ControlName% cannot be empty."; validationRule2.IsRequired = true; this.validationProvider1.SetValidationRule(this.textBox1, validationRule2); // // textBox2 // this.textBox2.Location = new System.Drawing.Point(256, 80); this.textBox2.Name = "textBox2"; this.textBox2.TabIndex = 1; this.textBox2.Text = "textBox2"; validationRule3.ErrorMessage = "%ControlName% cannot be equal to \"textBox2\"."; validationRule3.Operator = Noogen.Validation.ValidationCompareOperator.NotEqual; validationRule3.ValueToCompare = "textBox2"; this.validationProvider1.SetValidationRule(this.textBox2, validationRule3); // // textBox3 // this.textBox3.Location = new System.Drawing.Point(256, 104); this.textBox3.Name = "textBox3"; this.textBox3.TabIndex = 2; this.textBox3.Text = "textBox3"; validationRule4.DataType = Noogen.Validation.ValidationDataType.Double; validationRule4.ErrorMessage = "%ControlName% is not between 1 and 10."; validationRule4.MaximumValue = "10"; validationRule4.MinimumValue = "1"; this.validationProvider1.SetValidationRule(this.textBox3, validationRule4); // // textBox4 // this.textBox4.Location = new System.Drawing.Point(256, 144); this.textBox4.Name = "textBox4"; this.textBox4.Size = new System.Drawing.Size(104, 20); this.textBox4.TabIndex = 8; this.textBox4.Text = "textBox4"; validationRule5.ErrorMessage = "%ControlName% must be 7 characters long."; validationRule5.RegExPattern = "^\\S{7}$"; this.validationProvider1.SetValidationRule(this.textBox4, validationRule5); // // textBox5 // this.textBox5.Location = new System.Drawing.Point(144, 176); this.textBox5.Name = "textBox5"; this.textBox5.Size = new System.Drawing.Size(216, 20); this.textBox5.TabIndex = 10; this.textBox5.Text = "textBox5"; validationRule6.ErrorMessage = "%ControlName% is not a valid email address, mailbox@domain"; validationRule6.RegExPattern = "^([0-9a-zA-Z]([-.\\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\\w]*[0-9a-zA-Z]\\.)+[a-zA-Z]{2,9}" + ")$"; this.validationProvider1.SetValidationRule(this.textBox5, validationRule6); // // label1 // this.label1.Location = new System.Drawing.Point(24, 24); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(168, 23); this.label1.TabIndex = 4; this.label1.Text = "Required Validation: Not Empty"; // // label2 // this.label2.Location = new System.Drawing.Point(24, 80); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(216, 23); this.label2.TabIndex = 5; this.label2.Text = "Compare Validation: Not Equal textBox2"; // // label3 // this.label3.Location = new System.Drawing.Point(24, 112); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(184, 23); this.label3.TabIndex = 6; this.label3.Text = "Validate Range: Between 1 and 10"; // // label4 // this.label4.Location = new System.Drawing.Point(24, 48); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(224, 23); this.label4.TabIndex = 7; this.label4.Text = "Required Validation: Not [Choose]"; // // label5 // this.label5.Location = new System.Drawing.Point(24, 144); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(184, 23); this.label5.TabIndex = 9; this.label5.Text = "Regular Expression: Text Length=7"; // // label6 // this.label6.Location = new System.Drawing.Point(24, 176); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(112, 32); this.label6.TabIndex = 11; this.label6.Text = "Regular Expression: Email Addy"; // // ValidateButton // this.ValidateButton.Location = new System.Drawing.Point(280, 216); this.ValidateButton.Name = "ValidateButton"; this.ValidateButton.TabIndex = 12; this.ValidateButton.Text = "Validate"; this.ValidateButton.Click += new System.EventHandler(this.ValidateButton_Click); // // textBox6 // this.textBox6.Location = new System.Drawing.Point(136, 216); this.textBox6.Name = "textBox6"; this.textBox6.TabIndex = 13; this.textBox6.Text = "textBox6"; // // label7 // this.label7.Location = new System.Drawing.Point(24, 216); this.label7.Name = "label7"; this.label7.TabIndex = 14; this.label7.Text = "Custom Validation:"; // // DemoForm // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(392, 254); this.Controls.Add(this.label7); this.Controls.Add(this.textBox6); this.Controls.Add(this.ValidateButton); this.Controls.Add(this.label6); this.Controls.Add(this.textBox5); this.Controls.Add(this.label5); this.Controls.Add(this.textBox4); this.Controls.Add(this.label4); this.Controls.Add(this.label3); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.Controls.Add(this.comboBox1); this.Controls.Add(this.textBox3); this.Controls.Add(this.textBox2); this.Controls.Add(this.textBox1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "DemoForm"; this.Text = "Noogen ValidationProvider Demo"; this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); Noogen.Validation.ValidationRule validationRule1 = new Noogen.Validation.ValidationRule(); Noogen.Validation.ValidationRule validationRule2 = new Noogen.Validation.ValidationRule(); Noogen.Validation.ValidationRule validationRule3 = new Noogen.Validation.ValidationRule(); Noogen.Validation.ValidationRule validationRule4 = new Noogen.Validation.ValidationRule(); Noogen.Validation.ValidationRule validationRule5 = new Noogen.Validation.ValidationRule(); Noogen.Validation.ValidationRule validationRule6 = new Noogen.Validation.ValidationRule(); Noogen.Validation.ValidationRule validationRule7 = new Noogen.Validation.ValidationRule(); Noogen.Validation.ValidationRule validationRule8 = new Noogen.Validation.ValidationRule(); Noogen.Validation.ValidationRule validationRule9 = new Noogen.Validation.ValidationRule(); Noogen.Validation.ValidationRule validationRule10 = new Noogen.Validation.ValidationRule(); Noogen.Validation.ValidationRule validationRule11 = new Noogen.Validation.ValidationRule(); Noogen.Validation.ValidationRule validationRule12 = new Noogen.Validation.ValidationRule(); Noogen.Validation.ValidationRule validationRule13 = new Noogen.Validation.ValidationRule(); Noogen.Validation.ValidationRule validationRule14 = new Noogen.Validation.ValidationRule(); Noogen.Validation.ValidationRule validationRule15 = new Noogen.Validation.ValidationRule(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Property_Enter)); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.cities = new System.Windows.Forms.ComboBox(); this.locality = new System.Windows.Forms.ComboBox(); this.label3 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.PName = new System.Windows.Forms.TextBox(); this.Address = new System.Windows.Forms.TextBox(); this.area = new System.Windows.Forms.TextBox(); this.label5 = new System.Windows.Forms.Label(); this.roads = new System.Windows.Forms.TextBox(); this.no_floor = new System.Windows.Forms.Label(); this.noFloor = new System.Windows.Forms.TextBox(); this.label7 = new System.Windows.Forms.Label(); this.floorNo = new System.Windows.Forms.TextBox(); this.floor_no = new System.Windows.Forms.Label(); this.rooms = new System.Windows.Forms.TextBox(); this.road = new System.Windows.Forms.Label(); this.regDate = new System.Windows.Forms.DateTimePicker(); this.parking = new System.Windows.Forms.TextBox(); this.label10 = new System.Windows.Forms.Label(); this.label11 = new System.Windows.Forms.Label(); this.additional = new System.Windows.Forms.TextBox(); this.label12 = new System.Windows.Forms.Label(); this.label13 = new System.Windows.Forms.Label(); this.label14 = new System.Windows.Forms.Label(); this.askPrice = new System.Windows.Forms.TextBox(); this.availability = new System.Windows.Forms.CheckBox(); this.corner = new System.Windows.Forms.CheckBox(); this.garden = new System.Windows.Forms.CheckBox(); this.image = new System.Windows.Forms.TextBox(); this.label15 = new System.Windows.Forms.Label(); this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.label16 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label(); this.Buy_Rent = new System.Windows.Forms.ComboBox(); this.citiesLabel = new System.Windows.Forms.Label(); this.localityText = new System.Windows.Forms.Label(); this.Buy_RentText = new System.Windows.Forms.Label(); this.validationProvider1 = new Noogen.Validation.ValidationProvider(this.components); this.validationProvider2 = new Noogen.Validation.ValidationProvider(this.components); this.SuspendLayout(); // // label1 // this.label1.AutoSize = true; this.label1.BackColor = System.Drawing.Color.Transparent; this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Location = new System.Drawing.Point(57, 99); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(43, 20); this.label1.TabIndex = 0; this.label1.Text = "City :"; // // label2 // this.label2.AutoSize = true; this.label2.BackColor = System.Drawing.Color.Transparent; this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.Location = new System.Drawing.Point(30, 151); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(70, 20); this.label2.TabIndex = 1; this.label2.Text = "Locality :"; this.label2.Click += new System.EventHandler(this.label2_Click); // // cities // this.cities.FormattingEnabled = true; this.cities.Location = new System.Drawing.Point(110, 98); this.cities.Name = "cities"; this.cities.Size = new System.Drawing.Size(121, 21); this.cities.TabIndex = 2; validationRule1.IsRequired = true; this.validationProvider2.SetValidationRule(this.cities, validationRule1); validationRule2.ErrorMessage = "Field Invalid"; validationRule2.IsCaseSensitive = false; this.validationProvider1.SetValidationRule(this.cities, validationRule2); this.cities.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); // // locality // this.locality.FormattingEnabled = true; this.locality.Location = new System.Drawing.Point(110, 150); this.locality.Name = "locality"; this.locality.Size = new System.Drawing.Size(121, 21); this.locality.TabIndex = 3; validationRule3.IsRequired = true; this.validationProvider2.SetValidationRule(this.locality, validationRule3); validationRule4.ErrorMessage = "Field Inalid"; this.validationProvider1.SetValidationRule(this.locality, validationRule4); this.locality.SelectedIndexChanged += new System.EventHandler(this.comboBox2_SelectedIndexChanged); // // label3 // this.label3.AutoSize = true; this.label3.BackColor = System.Drawing.Color.Transparent; this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label3.Location = new System.Drawing.Point(41, 203); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(59, 20); this.label3.TabIndex = 4; this.label3.Text = "Name :"; this.label3.Click += new System.EventHandler(this.label3_Click); // // label4 // this.label4.AutoSize = true; this.label4.BackColor = System.Drawing.Color.Transparent; this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label4.Location = new System.Drawing.Point(24, 257); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(76, 20); this.label4.TabIndex = 5; this.label4.Text = "Address :"; this.label4.Click += new System.EventHandler(this.label4_Click); // // PName // this.PName.Location = new System.Drawing.Point(110, 205); this.PName.Name = "PName"; this.PName.Size = new System.Drawing.Size(121, 20); this.PName.TabIndex = 6; validationRule5.ErrorMessage = "Field Invalid"; validationRule5.IsRequired = true; this.validationProvider1.SetValidationRule(this.PName, validationRule5); this.PName.TextChanged += new System.EventHandler(this.textBox1_TextChanged); // // Address // this.Address.Location = new System.Drawing.Point(110, 257); this.Address.Multiline = true; this.Address.Name = "Address"; this.Address.Size = new System.Drawing.Size(121, 87); this.Address.TabIndex = 7; validationRule6.ErrorMessage = "Field Invalid"; validationRule6.IsCaseSensitive = false; validationRule6.IsRequired = true; this.validationProvider1.SetValidationRule(this.Address, validationRule6); this.Address.TextChanged += new System.EventHandler(this.textBox2_TextChanged); // // area // this.area.Location = new System.Drawing.Point(110, 404); this.area.Name = "area"; this.area.Size = new System.Drawing.Size(121, 20); this.area.TabIndex = 9; validationRule7.ErrorMessage = "Field Invalid"; validationRule7.IsCaseSensitive = false; validationRule7.IsRequired = true; validationRule7.RegExPattern = "^\\d*$"; this.validationProvider1.SetValidationRule(this.area, validationRule7); this.area.TextChanged += new System.EventHandler(this.area_TextChanged); // // label5 // this.label5.AutoSize = true; this.label5.BackColor = System.Drawing.Color.Transparent; this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label5.Location = new System.Drawing.Point(45, 404); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(51, 20); this.label5.TabIndex = 8; this.label5.Text = "Area :"; this.label5.Click += new System.EventHandler(this.label5_Click); // // roads // this.roads.Location = new System.Drawing.Point(370, 207); this.roads.Name = "roads"; this.roads.Size = new System.Drawing.Size(121, 20); this.roads.TabIndex = 11; validationRule8.ErrorMessage = "Field Invalid"; validationRule8.IsRequired = true; validationRule8.RegExPattern = "^\\d*$"; this.validationProvider1.SetValidationRule(this.roads, validationRule8); this.roads.TextChanged += new System.EventHandler(this.textBox4_TextChanged); // // no_floor // this.no_floor.AutoSize = true; this.no_floor.BackColor = System.Drawing.Color.Transparent; this.no_floor.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.no_floor.Location = new System.Drawing.Point(248, 151); this.no_floor.Name = "no_floor"; this.no_floor.Size = new System.Drawing.Size(103, 20); this.no_floor.TabIndex = 10; this.no_floor.Text = "No of Floors :"; this.no_floor.Click += new System.EventHandler(this.label6_Click); // // noFloor // this.noFloor.Location = new System.Drawing.Point(370, 153); this.noFloor.Name = "noFloor"; this.noFloor.Size = new System.Drawing.Size(121, 20); this.noFloor.TabIndex = 13; validationRule9.IsRequired = true; validationRule9.RegExPattern = "^\\d*$"; this.validationProvider1.SetValidationRule(this.noFloor, validationRule9); this.noFloor.TextChanged += new System.EventHandler(this.noFloor_TextChanged); // // label7 // this.label7.AutoSize = true; this.label7.BackColor = System.Drawing.Color.Transparent; this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label7.Location = new System.Drawing.Point(253, 99); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(110, 20); this.label7.TabIndex = 12; this.label7.Text = "No of Rooms :"; this.label7.Click += new System.EventHandler(this.label7_Click); // // floorNo // this.floorNo.Location = new System.Drawing.Point(370, 257); this.floorNo.Name = "floorNo"; this.floorNo.Size = new System.Drawing.Size(121, 20); this.floorNo.TabIndex = 15; validationRule10.ErrorMessage = "Field Invalid"; validationRule10.IsRequired = true; validationRule10.RegExPattern = "^\\d*$"; this.validationProvider1.SetValidationRule(this.floorNo, validationRule10); this.floorNo.TextChanged += new System.EventHandler(this.floorNo_TextChanged); // // floor_no // this.floor_no.AutoSize = true; this.floor_no.BackColor = System.Drawing.Color.Transparent; this.floor_no.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.floor_no.Location = new System.Drawing.Point(270, 255); this.floor_no.Name = "floor_no"; this.floor_no.Size = new System.Drawing.Size(81, 20); this.floor_no.TabIndex = 14; this.floor_no.Text = "Floor No. :"; this.floor_no.Click += new System.EventHandler(this.floor_no_Click); // // rooms // this.rooms.Location = new System.Drawing.Point(369, 98); this.rooms.Name = "rooms"; this.rooms.Size = new System.Drawing.Size(121, 20); this.rooms.TabIndex = 17; validationRule11.ErrorMessage = "Field Invalid"; validationRule11.IsRequired = true; validationRule11.RegExPattern = "^\\d*$"; this.validationProvider1.SetValidationRule(this.rooms, validationRule11); this.rooms.TextChanged += new System.EventHandler(this.rooms_TextChanged); // // road // this.road.AutoSize = true; this.road.BackColor = System.Drawing.Color.Transparent; this.road.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.road.Location = new System.Drawing.Point(248, 205); this.road.Name = "road"; this.road.Size = new System.Drawing.Size(101, 20); this.road.TabIndex = 16; this.road.Text = "Road Width :"; this.road.Click += new System.EventHandler(this.label9_Click); // // regDate // this.regDate.Location = new System.Drawing.Point(369, 378); this.regDate.Name = "regDate"; this.regDate.Size = new System.Drawing.Size(122, 20); this.regDate.TabIndex = 20; this.regDate.ValueChanged += new System.EventHandler(this.dateTimePicker2_ValueChanged); // // parking // this.parking.Location = new System.Drawing.Point(369, 306); this.parking.Name = "parking"; this.parking.Size = new System.Drawing.Size(121, 20); this.parking.TabIndex = 22; validationRule12.ErrorMessage = "Field Invalid"; validationRule12.IsRequired = true; validationRule12.RegExPattern = "^\\d*$"; this.validationProvider1.SetValidationRule(this.parking, validationRule12); this.parking.TextChanged += new System.EventHandler(this.textBox8_TextChanged); // // label10 // this.label10.AutoSize = true; this.label10.BackColor = System.Drawing.Color.Transparent; this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label10.Location = new System.Drawing.Point(521, 379); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(83, 20); this.label10.TabIndex = 21; this.label10.Text = "Ask Price :"; this.label10.Click += new System.EventHandler(this.label10_Click); // // label11 // this.label11.AutoSize = true; this.label11.BackColor = System.Drawing.Color.Transparent; this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label11.Location = new System.Drawing.Point(258, 324); this.label11.Name = "label11"; this.label11.Size = new System.Drawing.Size(91, 20); this.label11.TabIndex = 23; this.label11.Text = "(No of cars)"; this.label11.Click += new System.EventHandler(this.label11_Click); // // additional // this.additional.Location = new System.Drawing.Point(610, 155); this.additional.Multiline = true; this.additional.Name = "additional"; this.additional.Size = new System.Drawing.Size(121, 90); this.additional.TabIndex = 26; this.additional.TextChanged += new System.EventHandler(this.textBox10_TextChanged); // // label12 // this.label12.AutoSize = true; this.label12.BackColor = System.Drawing.Color.Transparent; this.label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label12.Location = new System.Drawing.Point(517, 153); this.label12.Name = "label12"; this.label12.Size = new System.Drawing.Size(87, 20); this.label12.TabIndex = 25; this.label12.Text = "Additional :"; this.label12.Click += new System.EventHandler(this.label12_Click); // // label13 // this.label13.AutoSize = true; this.label13.BackColor = System.Drawing.Color.Transparent; this.label13.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label13.Location = new System.Drawing.Point(279, 304); this.label13.Name = "label13"; this.label13.Size = new System.Drawing.Size(70, 20); this.label13.TabIndex = 27; this.label13.Text = "Parking :"; this.label13.Click += new System.EventHandler(this.label13_Click); // // label14 // this.label14.AutoSize = true; this.label14.BackColor = System.Drawing.Color.Transparent; this.label14.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label14.Location = new System.Drawing.Point(263, 376); this.label14.Name = "label14"; this.label14.Size = new System.Drawing.Size(86, 20); this.label14.TabIndex = 28; this.label14.Text = "Reg Date :"; this.label14.Click += new System.EventHandler(this.label14_Click); // // askPrice // this.askPrice.Location = new System.Drawing.Point(610, 379); this.askPrice.Name = "askPrice"; this.askPrice.Size = new System.Drawing.Size(121, 20); this.askPrice.TabIndex = 29; validationRule13.ErrorMessage = "Field Invalid"; validationRule13.IsRequired = true; validationRule13.RegExPattern = "^\\d*$"; this.validationProvider1.SetValidationRule(this.askPrice, validationRule13); this.askPrice.TextChanged += new System.EventHandler(this.askPrice_TextChanged); // // availability // this.availability.AutoSize = true; this.availability.BackColor = System.Drawing.Color.Transparent; this.availability.Location = new System.Drawing.Point(665, 98); this.availability.Name = "availability"; this.availability.Size = new System.Drawing.Size(75, 17); this.availability.TabIndex = 30; this.availability.Text = "Availability"; this.availability.UseVisualStyleBackColor = false; this.availability.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // corner // this.corner.AutoSize = true; this.corner.BackColor = System.Drawing.Color.Transparent; this.corner.Location = new System.Drawing.Point(535, 98); this.corner.Name = "corner"; this.corner.Size = new System.Drawing.Size(57, 17); this.corner.TabIndex = 31; this.corner.Text = "Corner"; this.corner.UseVisualStyleBackColor = false; this.corner.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged); // // garden // this.garden.AutoSize = true; this.garden.BackColor = System.Drawing.Color.Transparent; this.garden.Location = new System.Drawing.Point(598, 98); this.garden.Name = "garden"; this.garden.Size = new System.Drawing.Size(61, 17); this.garden.TabIndex = 32; this.garden.Text = "Garden"; this.garden.UseVisualStyleBackColor = false; this.garden.CheckedChanged += new System.EventHandler(this.garden_CheckedChanged); // // image // this.image.Location = new System.Drawing.Point(610, 289); this.image.Name = "image"; this.image.Size = new System.Drawing.Size(121, 20); this.image.TabIndex = 34; this.image.TextChanged += new System.EventHandler(this.textBox11_TextChanged); // // label15 // this.label15.AutoSize = true; this.label15.BackColor = System.Drawing.Color.Transparent; this.label15.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label15.Location = new System.Drawing.Point(542, 289); this.label15.Name = "label15"; this.label15.Size = new System.Drawing.Size(62, 20); this.label15.TabIndex = 33; this.label15.Text = "Image :"; this.label15.Click += new System.EventHandler(this.label15_Click_1); // // button1 // this.button1.Location = new System.Drawing.Point(329, 434); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(109, 36); this.button1.TabIndex = 35; this.button1.Text = "Create"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // // button2 // this.button2.Location = new System.Drawing.Point(656, 315); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(75, 23); this.button2.TabIndex = 36; this.button2.Text = "Browse"; this.button2.UseVisualStyleBackColor = true; this.button2.Click += new System.EventHandler(this.button2_Click); // // label16 // this.label16.AutoSize = true; this.label16.BackColor = System.Drawing.Color.Transparent; this.label16.Font = new System.Drawing.Font("Microsoft Sans Serif", 25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label16.Location = new System.Drawing.Point(175, 28); this.label16.Name = "label16"; this.label16.Size = new System.Drawing.Size(456, 39); this.label16.TabIndex = 37; this.label16.Text = "Enter Your Property Details"; this.label16.Click += new System.EventHandler(this.label16_Click); // // label8 // this.label8.AutoSize = true; this.label8.BackColor = System.Drawing.Color.Transparent; this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label8.Location = new System.Drawing.Point(17, 365); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(83, 20); this.label8.TabIndex = 38; this.label8.Text = "Buy/Rent :"; this.label8.Click += new System.EventHandler(this.label6_Click_1); // // Buy_Rent // this.Buy_Rent.FormattingEnabled = true; this.Buy_Rent.Location = new System.Drawing.Point(110, 364); this.Buy_Rent.Name = "Buy_Rent"; this.Buy_Rent.Size = new System.Drawing.Size(121, 21); this.Buy_Rent.TabIndex = 39; validationRule14.ErrorMessage = "Field Invalid"; validationRule14.IsRequired = true; this.validationProvider2.SetValidationRule(this.Buy_Rent, validationRule14); validationRule15.ErrorMessage = "Field Invalid"; this.validationProvider1.SetValidationRule(this.Buy_Rent, validationRule15); this.Buy_Rent.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged_1); // // citiesLabel // this.citiesLabel.AutoSize = true; this.citiesLabel.BackColor = System.Drawing.Color.Transparent; this.citiesLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.citiesLabel.Location = new System.Drawing.Point(106, 99); this.citiesLabel.Name = "citiesLabel"; this.citiesLabel.Size = new System.Drawing.Size(43, 20); this.citiesLabel.TabIndex = 40; this.citiesLabel.Text = "City :"; this.citiesLabel.Click += new System.EventHandler(this.label6_Click_2); // // localityText // this.localityText.AutoSize = true; this.localityText.BackColor = System.Drawing.Color.Transparent; this.localityText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.localityText.Location = new System.Drawing.Point(106, 151); this.localityText.Name = "localityText"; this.localityText.Size = new System.Drawing.Size(70, 20); this.localityText.TabIndex = 41; this.localityText.Text = "Locality :"; this.localityText.Click += new System.EventHandler(this.label6_Click_3); // // Buy_RentText // this.Buy_RentText.AutoSize = true; this.Buy_RentText.BackColor = System.Drawing.Color.Transparent; this.Buy_RentText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Buy_RentText.Location = new System.Drawing.Point(106, 365); this.Buy_RentText.Name = "Buy_RentText"; this.Buy_RentText.Size = new System.Drawing.Size(83, 20); this.Buy_RentText.TabIndex = 42; this.Buy_RentText.Text = "Buy/Rent :"; this.Buy_RentText.Click += new System.EventHandler(this.label9_Click_1); // // validationProvider1 // this.validationProvider1.Icon = ((System.Drawing.Icon)(resources.GetObject("validationProvider1.Icon"))); // // validationProvider2 // this.validationProvider2.Icon = ((System.Drawing.Icon)(resources.GetObject("validationProvider2.Icon"))); // // Property_Enter // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.SystemColors.GradientInactiveCaption; this.BackgroundImage = global::BuyNSell.Properties.Resources.blue_background_8_blue_abstract; this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.ClientSize = new System.Drawing.Size(847, 494); this.Controls.Add(this.Buy_RentText); this.Controls.Add(this.localityText); this.Controls.Add(this.citiesLabel); this.Controls.Add(this.Buy_Rent); this.Controls.Add(this.label8); this.Controls.Add(this.label16); this.Controls.Add(this.button2); this.Controls.Add(this.button1); this.Controls.Add(this.image); this.Controls.Add(this.label15); this.Controls.Add(this.garden); this.Controls.Add(this.corner); this.Controls.Add(this.availability); this.Controls.Add(this.askPrice); this.Controls.Add(this.label14); this.Controls.Add(this.label13); this.Controls.Add(this.additional); this.Controls.Add(this.label12); this.Controls.Add(this.label11); this.Controls.Add(this.parking); this.Controls.Add(this.label10); this.Controls.Add(this.regDate); this.Controls.Add(this.rooms); this.Controls.Add(this.road); this.Controls.Add(this.floorNo); this.Controls.Add(this.floor_no); this.Controls.Add(this.noFloor); this.Controls.Add(this.label7); this.Controls.Add(this.roads); this.Controls.Add(this.no_floor); this.Controls.Add(this.area); this.Controls.Add(this.label5); this.Controls.Add(this.Address); this.Controls.Add(this.PName); this.Controls.Add(this.label4); this.Controls.Add(this.label3); this.Controls.Add(this.locality); this.Controls.Add(this.cities); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.Name = "Property_Enter"; this.Text = "BuyNSell"; this.Load += new System.EventHandler(this.Form6_Load); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); Noogen.Validation.ValidationRule validationRule1 = new Noogen.Validation.ValidationRule(); Noogen.Validation.ValidationRule validationRule2 = new Noogen.Validation.ValidationRule(); Noogen.Validation.ValidationRule validationRule3 = new Noogen.Validation.ValidationRule(); Noogen.Validation.ValidationRule validationRule4 = new Noogen.Validation.ValidationRule(); Noogen.Validation.ValidationRule validationRule5 = new Noogen.Validation.ValidationRule(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(dataEntryForm1)); this.cancelButton = new System.Windows.Forms.Button(); this.SaveButton = new System.Windows.Forms.Button(); this.label6 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.postalCodeTextBox = new System.Windows.Forms.TextBox(); this.cityTextBox = new System.Windows.Forms.TextBox(); this.streetTextBox = new System.Windows.Forms.TextBox(); this.lastNameTextBox = new System.Windows.Forms.TextBox(); this.firstNameTextBox = new System.Windows.Forms.TextBox(); this.validationProvider1 = new Noogen.Validation.ValidationProvider(this.components); this.statesComboBox = new System.Windows.Forms.ComboBox(); this.SuspendLayout(); // // cancelButton // this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.cancelButton.Location = new System.Drawing.Point(222, 193); this.cancelButton.Name = "cancelButton"; this.cancelButton.Size = new System.Drawing.Size(75, 23); this.cancelButton.TabIndex = 13; this.cancelButton.Text = "Cancel"; this.cancelButton.UseVisualStyleBackColor = true; // // SaveButton // this.SaveButton.Location = new System.Drawing.Point(107, 193); this.SaveButton.Name = "SaveButton"; this.SaveButton.Size = new System.Drawing.Size(75, 23); this.SaveButton.TabIndex = 12; this.SaveButton.Text = "Submit"; this.SaveButton.UseVisualStyleBackColor = true; this.SaveButton.Click += new System.EventHandler(this.SaveButton_Click); // // label6 // this.label6.AutoSize = true; this.label6.Location = new System.Drawing.Point(37, 147); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(49, 13); this.label6.TabIndex = 10; this.label6.Text = "Zip-code"; // // label5 // this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(55, 121); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(32, 13); this.label5.TabIndex = 8; this.label5.Text = "State"; // // label4 // this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(63, 95); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(24, 13); this.label4.TabIndex = 6; this.label4.Text = "City"; // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(52, 73); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(35, 13); this.label3.TabIndex = 4; this.label3.Text = "Street"; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(31, 43); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(56, 13); this.label2.TabIndex = 2; this.label2.Text = "Last name"; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(31, 17); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(55, 13); this.label1.TabIndex = 0; this.label1.Text = "First name"; // // postalCodeTextBox // this.postalCodeTextBox.Location = new System.Drawing.Point(107, 144); this.postalCodeTextBox.Name = "postalCodeTextBox"; this.postalCodeTextBox.Size = new System.Drawing.Size(190, 20); this.postalCodeTextBox.TabIndex = 11; this.postalCodeTextBox.Tag = "Zip code"; validationRule1.ErrorMessage = "zip code is required"; validationRule1.IsRequired = true; this.validationProvider1.SetValidationRule(this.postalCodeTextBox, validationRule1); // // cityTextBox // this.cityTextBox.Location = new System.Drawing.Point(107, 92); this.cityTextBox.Name = "cityTextBox"; this.cityTextBox.Size = new System.Drawing.Size(190, 20); this.cityTextBox.TabIndex = 7; this.cityTextBox.Tag = "City"; validationRule2.ErrorMessage = "city is required"; validationRule2.IsRequired = true; this.validationProvider1.SetValidationRule(this.cityTextBox, validationRule2); // // streetTextBox // this.streetTextBox.Location = new System.Drawing.Point(107, 66); this.streetTextBox.Name = "streetTextBox"; this.streetTextBox.Size = new System.Drawing.Size(190, 20); this.streetTextBox.TabIndex = 5; this.streetTextBox.Tag = "Street"; validationRule3.ErrorMessage = "street is required"; validationRule3.IsRequired = true; this.validationProvider1.SetValidationRule(this.streetTextBox, validationRule3); // // lastNameTextBox // this.lastNameTextBox.Location = new System.Drawing.Point(107, 40); this.lastNameTextBox.Name = "lastNameTextBox"; this.lastNameTextBox.Size = new System.Drawing.Size(190, 20); this.lastNameTextBox.TabIndex = 3; this.lastNameTextBox.Tag = "Last name"; validationRule4.ErrorMessage = "last name is required"; validationRule4.IsRequired = true; this.validationProvider1.SetValidationRule(this.lastNameTextBox, validationRule4); // // firstNameTextBox // this.firstNameTextBox.Location = new System.Drawing.Point(107, 14); this.firstNameTextBox.Name = "firstNameTextBox"; this.firstNameTextBox.Size = new System.Drawing.Size(190, 20); this.firstNameTextBox.TabIndex = 1; this.firstNameTextBox.Tag = "First name"; validationRule5.ErrorMessage = "first name is required"; validationRule5.IsRequired = true; this.validationProvider1.SetValidationRule(this.firstNameTextBox, validationRule5); // // validationProvider1 // this.validationProvider1.BlinkStyle = System.Windows.Forms.ErrorBlinkStyle.NeverBlink; this.validationProvider1.Icon = ((System.Drawing.Icon)(resources.GetObject("validationProvider1.Icon"))); // // statesComboBox // this.statesComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.statesComboBox.FormattingEnabled = true; this.statesComboBox.Location = new System.Drawing.Point(107, 118); this.statesComboBox.Name = "statesComboBox"; this.statesComboBox.Size = new System.Drawing.Size(84, 21); this.statesComboBox.TabIndex = 9; // // dataEntryForm1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(329, 230); this.Controls.Add(this.statesComboBox); this.Controls.Add(this.cancelButton); this.Controls.Add(this.SaveButton); this.Controls.Add(this.label6); this.Controls.Add(this.label5); this.Controls.Add(this.label4); this.Controls.Add(this.label3); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.Controls.Add(this.postalCodeTextBox); this.Controls.Add(this.cityTextBox); this.Controls.Add(this.streetTextBox); this.Controls.Add(this.lastNameTextBox); this.Controls.Add(this.firstNameTextBox); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.Name = "dataEntryForm1"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Data Entry (Level 3)"; this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); Noogen.Validation.ValidationRule validationRule1 = new Noogen.Validation.ValidationRule(); Noogen.Validation.ValidationRule validationRule2 = new Noogen.Validation.ValidationRule(); Noogen.Validation.ValidationRule validationRule3 = new Noogen.Validation.ValidationRule(); Noogen.Validation.ValidationRule validationRule4 = new Noogen.Validation.ValidationRule(); Noogen.Validation.ValidationRule validationRule5 = new Noogen.Validation.ValidationRule(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Register)); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.textBox1 = new System.Windows.Forms.TextBox(); this.textBox2 = new System.Windows.Forms.TextBox(); this.textBox3 = new System.Windows.Forms.TextBox(); this.textBox4 = new System.Windows.Forms.TextBox(); this.textBox5 = new System.Windows.Forms.TextBox(); this.textBox6 = new System.Windows.Forms.TextBox(); this.button1 = new System.Windows.Forms.Button(); this.linkLabel1 = new System.Windows.Forms.LinkLabel(); this.pictureBox2 = new System.Windows.Forms.PictureBox(); this.validationProvider1 = new Noogen.Validation.ValidationProvider(this.components); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); this.SuspendLayout(); // // label2 // this.label2.AutoSize = true; this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.ForeColor = System.Drawing.Color.SteelBlue; this.label2.Location = new System.Drawing.Point(85, 153); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(55, 20); this.label2.TabIndex = 1; this.label2.Text = "Name"; this.label2.Click += new System.EventHandler(this.label2_Click); // // label3 // this.label3.AutoSize = true; this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label3.ForeColor = System.Drawing.Color.SteelBlue; this.label3.Location = new System.Drawing.Point(88, 198); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(53, 20); this.label3.TabIndex = 2; this.label3.Text = "Email"; this.label3.Click += new System.EventHandler(this.label3_Click); // // label4 // this.label4.AutoSize = true; this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label4.ForeColor = System.Drawing.Color.SteelBlue; this.label4.Location = new System.Drawing.Point(55, 251); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(86, 20); this.label4.TabIndex = 3; this.label4.Text = "Password"; this.label4.Click += new System.EventHandler(this.label4_Click); // // label5 // this.label5.AutoSize = true; this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label5.ForeColor = System.Drawing.Color.SteelBlue; this.label5.Location = new System.Drawing.Point(78, 303); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(60, 20); this.label5.TabIndex = 4; this.label5.Text = "Phone"; this.label5.Click += new System.EventHandler(this.label5_Click); // // label6 // this.label6.AutoSize = true; this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label6.ForeColor = System.Drawing.Color.SteelBlue; this.label6.Location = new System.Drawing.Point(20, 349); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(129, 20); this.label6.TabIndex = 5; this.label6.Text = "Annual Income"; this.label6.Click += new System.EventHandler(this.label6_Click); // // label7 // this.label7.AutoSize = true; this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label7.ForeColor = System.Drawing.Color.SteelBlue; this.label7.Location = new System.Drawing.Point(68, 395); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(75, 20); this.label7.TabIndex = 6; this.label7.Text = "Address"; this.label7.Click += new System.EventHandler(this.label7_Click); // // textBox1 // this.textBox1.Location = new System.Drawing.Point(175, 153); this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(132, 20); this.textBox1.TabIndex = 7; validationRule1.ErrorMessage = "Fill Details"; validationRule1.IsRequired = true; this.validationProvider1.SetValidationRule(this.textBox1, validationRule1); this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged); // // textBox2 // this.textBox2.Location = new System.Drawing.Point(175, 200); this.textBox2.Name = "textBox2"; this.textBox2.Size = new System.Drawing.Size(132, 20); this.textBox2.TabIndex = 8; validationRule2.ErrorMessage = "Email is invalid."; validationRule2.IsRequired = true; validationRule2.RegExPattern = "^([0-9a-zA-Z]([-.\\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\\w]*[0-9a-zA-Z]\\.)+[a-zA-Z]{2,9}" + ")$"; this.validationProvider1.SetValidationRule(this.textBox2, validationRule2); this.textBox2.TextChanged += new System.EventHandler(this.textBox2_TextChanged); // // textBox3 // this.textBox3.Location = new System.Drawing.Point(175, 251); this.textBox3.Name = "textBox3"; this.textBox3.Size = new System.Drawing.Size(132, 20); this.textBox3.TabIndex = 9; validationRule3.ErrorMessage = "Enter a strong password"; validationRule3.IsRequired = true; this.validationProvider1.SetValidationRule(this.textBox3, validationRule3); this.textBox3.TextChanged += new System.EventHandler(this.textBox3_TextChanged); // // textBox4 // this.textBox4.Location = new System.Drawing.Point(175, 303); this.textBox4.Name = "textBox4"; this.textBox4.Size = new System.Drawing.Size(132, 20); this.textBox4.TabIndex = 10; validationRule4.ErrorMessage = "Not a valid phone number, ###-###-###"; validationRule4.IsCaseSensitive = false; validationRule4.IsRequired = true; validationRule4.RegExPattern = "^\\d{3}\\d{3}\\d{4}$"; this.validationProvider1.SetValidationRule(this.textBox4, validationRule4); this.textBox4.TextChanged += new System.EventHandler(this.textBox4_TextChanged); // // textBox5 // this.textBox5.Location = new System.Drawing.Point(175, 351); this.textBox5.Name = "textBox5"; this.textBox5.Size = new System.Drawing.Size(132, 20); this.textBox5.TabIndex = 11; validationRule5.ErrorMessage = "Input is invalid."; validationRule5.IsCaseSensitive = false; validationRule5.IsRequired = true; validationRule5.RegExPattern = "\\d"; this.validationProvider1.SetValidationRule(this.textBox5, validationRule5); this.textBox5.TextChanged += new System.EventHandler(this.textBox5_TextChanged); // // textBox6 // this.textBox6.Location = new System.Drawing.Point(175, 397); this.textBox6.Multiline = true; this.textBox6.Name = "textBox6"; this.textBox6.Size = new System.Drawing.Size(132, 74); this.textBox6.TabIndex = 12; this.textBox6.TextChanged += new System.EventHandler(this.textBox6_TextChanged); // // button1 // this.button1.BackColor = System.Drawing.SystemColors.Control; this.button1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button1.BackgroundImage"))); this.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.button1.FlatAppearance.BorderSize = 0; this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button1.Location = new System.Drawing.Point(157, 466); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(159, 82); this.button1.TabIndex = 13; this.button1.UseVisualStyleBackColor = false; this.button1.Click += new System.EventHandler(this.button1_Click); // // linkLabel1 // this.linkLabel1.AutoSize = true; this.linkLabel1.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.linkLabel1.LinkColor = System.Drawing.Color.DarkCyan; this.linkLabel1.Location = new System.Drawing.Point(172, 542); this.linkLabel1.Name = "linkLabel1"; this.linkLabel1.Size = new System.Drawing.Size(43, 17); this.linkLabel1.TabIndex = 14; this.linkLabel1.TabStop = true; this.linkLabel1.Text = "Login"; this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked); // // pictureBox2 // this.pictureBox2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pictureBox2.BackgroundImage"))); this.pictureBox2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.pictureBox2.Location = new System.Drawing.Point(72, 0); this.pictureBox2.Name = "pictureBox2"; this.pictureBox2.Size = new System.Drawing.Size(217, 163); this.pictureBox2.TabIndex = 16; this.pictureBox2.TabStop = false; this.pictureBox2.Click += new System.EventHandler(this.pictureBox2_Click); // // validationProvider1 // this.validationProvider1.Icon = ((System.Drawing.Icon)(resources.GetObject("validationProvider1.Icon"))); // // Register // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.SystemColors.ControlLightLight; this.ClientSize = new System.Drawing.Size(369, 571); this.Controls.Add(this.linkLabel1); this.Controls.Add(this.textBox6); this.Controls.Add(this.textBox5); this.Controls.Add(this.textBox4); this.Controls.Add(this.textBox3); this.Controls.Add(this.textBox2); this.Controls.Add(this.textBox1); this.Controls.Add(this.label7); this.Controls.Add(this.label6); this.Controls.Add(this.label5); this.Controls.Add(this.label4); this.Controls.Add(this.label3); this.Controls.Add(this.label2); this.Controls.Add(this.pictureBox2); this.Controls.Add(this.button1); this.Name = "Register"; this.Text = "BuyNSell"; this.Load += new System.EventHandler(this.Form2_Load); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }