Пример #1
0
 private void AskHowMany(string title, string info)
 {
     this.HowManyNumericUpDown1 = new System.Windows.Forms.NumericUpDown();
     this.HowManyGroupBox1      = new System.Windows.Forms.GroupBox();
     this.HowManyButton1        = new System.Windows.Forms.Button();
     this.HowManyForm           = new System.Windows.Forms.Form();
     ((System.ComponentModel.ISupportInitialize)(this.HowManyNumericUpDown1)).BeginInit();
     this.HowManyGroupBox1.SuspendLayout();
     HowManyForm.SuspendLayout();
     //
     // HowManyNumericUpDown1
     //
     this.HowManyNumericUpDown1.Location = new System.Drawing.Point(26, 30);
     this.HowManyNumericUpDown1.Name     = "HowManyNumericUpDown1";
     this.HowManyNumericUpDown1.Size     = new System.Drawing.Size(149, 20);
     this.HowManyNumericUpDown1.TabIndex = 0;
     this.HowManyNumericUpDown1.Maximum  = ReadInteger4(4);
     //
     // HowManyGroupBox1
     //
     this.HowManyGroupBox1.Controls.Add(this.HowManyButton1);
     this.HowManyGroupBox1.Controls.Add(this.HowManyNumericUpDown1);
     this.HowManyGroupBox1.Location = new System.Drawing.Point(12, 12);
     this.HowManyGroupBox1.Name     = "HowManyGroupBox1";
     this.HowManyGroupBox1.Size     = new System.Drawing.Size(200, 100);
     this.HowManyGroupBox1.TabIndex = 1;
     this.HowManyGroupBox1.TabStop  = false;
     this.HowManyGroupBox1.Text     = info;
     //
     // HowManyButton1
     //
     this.HowManyButton1.Location = new System.Drawing.Point(26, 56);
     this.HowManyButton1.Name     = "HowManyButton1";
     this.HowManyButton1.Size     = new System.Drawing.Size(149, 23);
     this.HowManyButton1.TabIndex = 1;
     this.HowManyButton1.Text     = "Valid";
     this.HowManyButton1.UseVisualStyleBackColor = true;
     this.HowManyButton1.Click += new System.EventHandler(this.HowManyButton1Click);
     //
     // HowManyForm
     //
     HowManyForm.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     HowManyForm.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     HowManyForm.ClientSize          = new System.Drawing.Size(225, 119);
     HowManyForm.Controls.Add(this.HowManyGroupBox1);
     HowManyForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     HowManyForm.Name            = "HowManyForm";
     HowManyForm.ShowInTaskbar   = false;
     HowManyForm.SizeGripStyle   = System.Windows.Forms.SizeGripStyle.Hide;
     HowManyForm.StartPosition   = System.Windows.Forms.FormStartPosition.CenterParent;
     HowManyForm.Text            = title;
     ((System.ComponentModel.ISupportInitialize)(this.HowManyNumericUpDown1)).EndInit();
     this.HowManyGroupBox1.ResumeLayout(false);
     HowManyForm.ResumeLayout(false);
     HowManyForm.ShowDialog();
 }