/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { Gluon.Validation.Validators.RegexValidator EmailValidator; System.Windows.Forms.Label EmailLabel; System.Windows.Forms.Label NumberLabel; this.CloseButton = new System.Windows.Forms.Button(); this.EmailBox = new System.Windows.Forms.TextBox(); this.NumberBox = new System.Windows.Forms.TextBox(); this.ValidationProvider = new Gluon.Validation.ValidationProvider(); this.BlinkIconFormatter = new Gluon.Validation.ErrorFormatters.ErrorProviderFormatter(); this.RedBackgroundFormatter = new Gluon.Validation.ErrorFormatters.BackgroundFormatter(); this.NumberValidator = new Gluon.Validation.Validators.NumberRangeValidator(); this.ValidationButton = new Gluon.Validation.ValidationButton(); EmailValidator = new Gluon.Validation.Validators.RegexValidator(); EmailLabel = new System.Windows.Forms.Label(); NumberLabel = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.BlinkIconFormatter)).BeginInit(); this.SuspendLayout(); // // EmailValidator // EmailValidator.Expression = "^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,4}$"; EmailValidator.IgnoreCase = true; EmailValidator.Message = "This field needs a valid e-mail address."; // // CloseButton // this.CloseButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.CloseButton.Location = new System.Drawing.Point(62, 73); this.CloseButton.Name = "CloseButton"; this.CloseButton.Size = new System.Drawing.Size(75, 23); this.CloseButton.TabIndex = 3; this.CloseButton.Text = "Cancel"; this.CloseButton.UseVisualStyleBackColor = true; // // EmailBox // this.EmailBox.CausesValidation = false; this.ValidationProvider.SetErrorFormatter(this.EmailBox, this.RedBackgroundFormatter); this.EmailBox.Location = new System.Drawing.Point(62, 41); this.EmailBox.Name = "EmailBox"; this.EmailBox.Size = new System.Drawing.Size(162, 20); this.EmailBox.TabIndex = 1; this.ValidationProvider.SetValidator(this.EmailBox, EmailValidator); // // NumberBox // this.NumberBox.CausesValidation = false; this.ValidationProvider.SetErrorFormatter(this.NumberBox, this.BlinkIconFormatter); this.NumberBox.Location = new System.Drawing.Point(62, 15); this.NumberBox.Name = "NumberBox"; this.NumberBox.Size = new System.Drawing.Size(162, 20); this.NumberBox.TabIndex = 0; this.ValidationProvider.SetValidator(this.NumberBox, this.NumberValidator); // // BlinkIconFormatter // this.BlinkIconFormatter.ContainerControl = this; // // NumberValidator // this.NumberValidator.Maximum = 100; this.NumberValidator.Minimum = 0; this.NumberValidator.OutOfRangeMessage = "Please use a number between 0 and 100."; // // ValidationButton // this.ValidationButton.DialogResult = System.Windows.Forms.DialogResult.OK; this.ValidationButton.Location = new System.Drawing.Point(149, 73); this.ValidationButton.Name = "ValidationButton"; this.ValidationButton.Size = new System.Drawing.Size(75, 23); this.ValidationButton.TabIndex = 4; this.ValidationButton.Text = "OK"; this.ValidationButton.UseVisualStyleBackColor = true; this.ValidationButton.ValidationProvider = this.ValidationProvider; // // EmailLabel // EmailLabel.AutoSize = true; EmailLabel.Location = new System.Drawing.Point(21, 44); EmailLabel.Name = "EmailLabel"; EmailLabel.Size = new System.Drawing.Size(35, 13); EmailLabel.TabIndex = 5; EmailLabel.Text = "E-mail"; // // NumberLabel // NumberLabel.AutoSize = true; NumberLabel.Location = new System.Drawing.Point(12, 18); NumberLabel.Name = "NumberLabel"; NumberLabel.Size = new System.Drawing.Size(44, 13); NumberLabel.TabIndex = 6; NumberLabel.Text = "Number"; // // ValidationForm // this.AcceptButton = this.ValidationButton; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.CloseButton; this.ClientSize = new System.Drawing.Size(249, 108); this.Controls.Add(NumberLabel); this.Controls.Add(EmailLabel); this.Controls.Add(this.ValidationButton); this.Controls.Add(this.CloseButton); this.Controls.Add(this.EmailBox); this.Controls.Add(this.NumberBox); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Name = "ValidationForm"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Validation"; ((System.ComponentModel.ISupportInitialize)(this.BlinkIconFormatter)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }