Example #1
0
 private void InitializeComponent()
 {
     this.txtName         = new System.Windows.Forms.TextBox();
     this.gbTimeLimits    = new System.Windows.Forms.GroupBox();
     this.label2          = new System.Windows.Forms.Label();
     this.numIncrement    = new System.Windows.Forms.NumericUpDown();
     this.label1          = new System.Windows.Forms.Label();
     this.labelx          = new System.Windows.Forms.Label();
     this.label21         = new System.Windows.Forms.Label();
     this.tmGame          = new Chess_Timer_v_4.SetTime();
     this.tmTurn          = new Chess_Timer_v_4.SetTime();
     this.groupBox1       = new System.Windows.Forms.GroupBox();
     this.chkCarrySpare   = new System.Windows.Forms.CheckBox();
     this.chkCarryOver    = new System.Windows.Forms.CheckBox();
     this.groupBox2       = new System.Windows.Forms.GroupBox();
     this.tmOverTotal     = new Chess_Timer_v_4.SetTime();
     this.tmOverSingle    = new Chess_Timer_v_4.SetTime();
     this.label7          = new System.Windows.Forms.Label();
     this.label6          = new System.Windows.Forms.Label();
     this.label4          = new System.Windows.Forms.Label();
     this.numTimesOverRow = new System.Windows.Forms.NumericUpDown();
     this.label5          = new System.Windows.Forms.Label();
     this.numTimesOver    = new System.Windows.Forms.NumericUpDown();
     this.label3          = new System.Windows.Forms.Label();
     this.GetProfile      = new System.Windows.Forms.Button();
     this.gbTimeLimits.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.numIncrement)).BeginInit();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.numTimesOverRow)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numTimesOver)).BeginInit();
     this.SuspendLayout();
     //
     // txtName
     //
     this.txtName.Location     = new System.Drawing.Point(3, 3);
     this.txtName.Name         = "txtName";
     this.txtName.Size         = new System.Drawing.Size(169, 20);
     this.txtName.TabIndex     = 0;
     this.txtName.Text         = "Chris Allen";
     this.txtName.TextChanged += new System.EventHandler(this.txtName_TextChanged);
     //
     // gbTimeLimits
     //
     this.gbTimeLimits.Controls.Add(this.label2);
     this.gbTimeLimits.Controls.Add(this.numIncrement);
     this.gbTimeLimits.Controls.Add(this.label1);
     this.gbTimeLimits.Controls.Add(this.labelx);
     this.gbTimeLimits.Controls.Add(this.label21);
     this.gbTimeLimits.Controls.Add(this.tmGame);
     this.gbTimeLimits.Controls.Add(this.tmTurn);
     this.gbTimeLimits.Location = new System.Drawing.Point(3, 29);
     this.gbTimeLimits.Name     = "gbTimeLimits";
     this.gbTimeLimits.Size     = new System.Drawing.Size(194, 133);
     this.gbTimeLimits.TabIndex = 1;
     this.gbTimeLimits.TabStop  = false;
     this.gbTimeLimits.Text     = "Player Time Limits";
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(126, 109);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(47, 13);
     this.label2.TabIndex = 3;
     this.label2.Text     = "seconds";
     //
     // numIncrement
     //
     this.numIncrement.Location = new System.Drawing.Point(83, 107);
     this.numIncrement.Name     = "numIncrement";
     this.numIncrement.Size     = new System.Drawing.Size(37, 20);
     this.numIncrement.TabIndex = 3;
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(6, 109);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(75, 13);
     this.label1.TabIndex = 2;
     this.label1.Text     = "with increment";
     //
     // labelx
     //
     this.labelx.AutoSize = true;
     this.labelx.Font     = new System.Drawing.Font("Tahoma", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.labelx.Location = new System.Drawing.Point(8, 62);
     this.labelx.Name     = "labelx";
     this.labelx.Size     = new System.Drawing.Size(113, 11);
     this.labelx.TabIndex = 12;
     this.labelx.Text     = "Player game time is...";
     //
     // label21
     //
     this.label21.AutoSize = true;
     this.label21.Font     = new System.Drawing.Font("Tahoma", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label21.Location = new System.Drawing.Point(8, 18);
     this.label21.Name     = "label21";
     this.label21.Size     = new System.Drawing.Size(107, 11);
     this.label21.TabIndex = 12;
     this.label21.Text     = "Player turn time is...";
     //
     // tmGame
     //
     this.tmGame.Location = new System.Drawing.Point(8, 76);
     this.tmGame.Name     = "tmGame";
     this.tmGame.Size     = new System.Drawing.Size(172, 27);
     this.tmGame.TabIndex = 2;
     this.tmGame.Load    += new System.EventHandler(this.tmGame_Load);
     //
     // tmTurn
     //
     this.tmTurn.Location = new System.Drawing.Point(8, 32);
     this.tmTurn.Name     = "tmTurn";
     this.tmTurn.Size     = new System.Drawing.Size(172, 27);
     this.tmTurn.TabIndex = 1;
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.chkCarrySpare);
     this.groupBox1.Controls.Add(this.chkCarryOver);
     this.groupBox1.Location = new System.Drawing.Point(3, 168);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(194, 63);
     this.groupBox1.TabIndex = 2;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Player Carrying Options";
     //
     // chkCarrySpare
     //
     this.chkCarrySpare.AutoSize = true;
     this.chkCarrySpare.Font     = new System.Drawing.Font("Tahoma", 6.75F, System.Drawing.FontStyle.Bold);
     this.chkCarrySpare.Location = new System.Drawing.Point(8, 39);
     this.chkCarrySpare.Name     = "chkCarrySpare";
     this.chkCarrySpare.Size     = new System.Drawing.Size(109, 15);
     this.chkCarrySpare.TabIndex = 5;
     this.chkCarrySpare.Text     = "Carry spare time";
     this.chkCarrySpare.UseVisualStyleBackColor = true;
     //
     // chkCarryOver
     //
     this.chkCarryOver.AutoSize = true;
     this.chkCarryOver.Font     = new System.Drawing.Font("Tahoma", 6.75F, System.Drawing.FontStyle.Bold);
     this.chkCarryOver.Location = new System.Drawing.Point(8, 18);
     this.chkCarryOver.Name     = "chkCarryOver";
     this.chkCarryOver.Size     = new System.Drawing.Size(104, 15);
     this.chkCarryOver.TabIndex = 4;
     this.chkCarryOver.Text     = "Carry over time";
     this.chkCarryOver.UseVisualStyleBackColor = true;
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.tmOverTotal);
     this.groupBox2.Controls.Add(this.tmOverSingle);
     this.groupBox2.Controls.Add(this.label7);
     this.groupBox2.Controls.Add(this.label6);
     this.groupBox2.Controls.Add(this.label4);
     this.groupBox2.Controls.Add(this.numTimesOverRow);
     this.groupBox2.Controls.Add(this.label5);
     this.groupBox2.Controls.Add(this.numTimesOver);
     this.groupBox2.Controls.Add(this.label3);
     this.groupBox2.Location = new System.Drawing.Point(3, 237);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(194, 181);
     this.groupBox2.TabIndex = 3;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Player Loses If...";
     //
     // tmOverTotal
     //
     this.tmOverTotal.Location = new System.Drawing.Point(8, 142);
     this.tmOverTotal.Name     = "tmOverTotal";
     this.tmOverTotal.Size     = new System.Drawing.Size(172, 27);
     this.tmOverTotal.TabIndex = 9;
     //
     // tmOverSingle
     //
     this.tmOverSingle.Location = new System.Drawing.Point(8, 98);
     this.tmOverSingle.Name     = "tmOverSingle";
     this.tmOverSingle.Size     = new System.Drawing.Size(172, 27);
     this.tmOverSingle.TabIndex = 8;
     //
     // label7
     //
     this.label7.AutoSize = true;
     this.label7.Font     = new System.Drawing.Font("Tahoma", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label7.Location = new System.Drawing.Point(8, 128);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(133, 11);
     this.label7.TabIndex = 11;
     this.label7.Text     = "Total time over reaches...";
     //
     // label6
     //
     this.label6.AutoSize = true;
     this.label6.Font     = new System.Drawing.Font("Tahoma", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label6.Location = new System.Drawing.Point(8, 84);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(184, 11);
     this.label6.TabIndex = 10;
     this.label6.Text     = "Time over in a single turn reaches...";
     //
     // label4
     //
     this.label4.AutoSize = true;
     this.label4.Location = new System.Drawing.Point(93, 61);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(71, 13);
     this.label4.TabIndex = 8;
     this.label4.Text     = "times in-a-row";
     //
     // numTimesOverRow
     //
     this.numTimesOverRow.Location = new System.Drawing.Point(10, 59);
     this.numTimesOverRow.Name     = "numTimesOverRow";
     this.numTimesOverRow.Size     = new System.Drawing.Size(80, 20);
     this.numTimesOverRow.TabIndex = 7;
     //
     // label5
     //
     this.label5.AutoSize = true;
     this.label5.Location = new System.Drawing.Point(93, 34);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(31, 13);
     this.label5.TabIndex = 6;
     this.label5.Text     = "times";
     //
     // numTimesOver
     //
     this.numTimesOver.Location = new System.Drawing.Point(10, 32);
     this.numTimesOver.Name     = "numTimesOver";
     this.numTimesOver.Size     = new System.Drawing.Size(80, 20);
     this.numTimesOver.TabIndex = 6;
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Font     = new System.Drawing.Font("Tahoma", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label3.Location = new System.Drawing.Point(8, 18);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(147, 11);
     this.label3.TabIndex = 2;
     this.label3.Text     = "They go over set turn time...\r\n";
     //
     // GetProfile
     //
     this.GetProfile.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.GetProfile.Location = new System.Drawing.Point(175, 3);
     this.GetProfile.Margin   = new System.Windows.Forms.Padding(0);
     this.GetProfile.Name     = "GetProfile";
     this.GetProfile.Size     = new System.Drawing.Size(22, 20);
     this.GetProfile.TabIndex = 13;
     this.GetProfile.TabStop  = false;
     this.GetProfile.Text     = "...";
     this.GetProfile.UseCompatibleTextRendering = true;
     this.GetProfile.UseMnemonic             = false;
     this.GetProfile.UseVisualStyleBackColor = false;
     //
     // PlayerSetup
     //
     this.Controls.Add(this.GetProfile);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.gbTimeLimits);
     this.Controls.Add(this.txtName);
     this.Name = "PlayerSetup";
     this.Size = new System.Drawing.Size(200, 428);
     this.gbTimeLimits.ResumeLayout(false);
     this.gbTimeLimits.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.numIncrement)).EndInit();
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.groupBox2.ResumeLayout(false);
     this.groupBox2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.numTimesOverRow)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numTimesOver)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Example #2
0
 private void InitializeComponent()
 {
     this.components     = new System.ComponentModel.Container();
     this.lblIntro       = new System.Windows.Forms.Label();
     this.lblReason      = new System.Windows.Forms.Label();
     this.btnCont        = new System.Windows.Forms.Button();
     this.btnEnd         = new System.Windows.Forms.Button();
     this.btnStats       = new System.Windows.Forms.Button();
     this.chkIgnore      = new System.Windows.Forms.CheckBox();
     this.lblNote        = new System.Windows.Forms.Label();
     this.lblRemedyIntro = new System.Windows.Forms.Label();
     this.remIncrease    = new Chess_Timer_v_4.SetTime();
     this.lblIncrease    = new System.Windows.Forms.Label();
     this.groupBox1      = new System.Windows.Forms.GroupBox();
     this.BeepTimer      = new System.Windows.Forms.Timer(this.components);
     this.groupBox1.SuspendLayout();
     this.SuspendLayout();
     //
     // lblIntro
     //
     this.lblIntro.AutoSize = true;
     this.lblIntro.Location = new System.Drawing.Point(12, 13);
     this.lblIntro.Name     = "lblIntro";
     this.lblIntro.Size     = new System.Drawing.Size(64, 13);
     this.lblIntro.TabIndex = 0;
     this.lblIntro.Text     = "END GAME";
     //
     // lblReason
     //
     this.lblReason.AutoSize = true;
     this.lblReason.Location = new System.Drawing.Point(12, 31);
     this.lblReason.Name     = "lblReason";
     this.lblReason.Size     = new System.Drawing.Size(52, 13);
     this.lblReason.TabIndex = 1;
     this.lblReason.Text     = "REASON";
     //
     // btnCont
     //
     this.btnCont.BackColor = System.Drawing.Color.Lime;
     this.btnCont.Location  = new System.Drawing.Point(171, 191);
     this.btnCont.Name      = "btnCont";
     this.btnCont.Size      = new System.Drawing.Size(87, 23);
     this.btnCont.TabIndex  = 2;
     this.btnCont.Text      = "Continue game";
     this.btnCont.UseVisualStyleBackColor = false;
     this.btnCont.Click += new System.EventHandler(this.btnCont_Click);
     //
     // btnEnd
     //
     this.btnEnd.BackColor = System.Drawing.Color.Red;
     this.btnEnd.Location  = new System.Drawing.Point(171, 220);
     this.btnEnd.Name      = "btnEnd";
     this.btnEnd.Size      = new System.Drawing.Size(87, 23);
     this.btnEnd.TabIndex  = 2;
     this.btnEnd.Text      = "End game";
     this.btnEnd.UseVisualStyleBackColor = false;
     this.btnEnd.Click += new System.EventHandler(this.btnEnd_Click);
     //
     // btnStats
     //
     this.btnStats.BackColor = System.Drawing.Color.White;
     this.btnStats.Location  = new System.Drawing.Point(78, 220);
     this.btnStats.Name      = "btnStats";
     this.btnStats.Size      = new System.Drawing.Size(87, 23);
     this.btnStats.TabIndex  = 2;
     this.btnStats.Text      = "View stats";
     this.btnStats.UseVisualStyleBackColor = false;
     //
     // chkIgnore
     //
     this.chkIgnore.AutoSize = true;
     this.chkIgnore.Location = new System.Drawing.Point(9, 68);
     this.chkIgnore.Name     = "chkIgnore";
     this.chkIgnore.Size     = new System.Drawing.Size(83, 17);
     this.chkIgnore.TabIndex = 3;
     this.chkIgnore.Text     = "Ignore once";
     this.chkIgnore.UseVisualStyleBackColor = true;
     this.chkIgnore.Visible = false;
     //
     // lblNote
     //
     this.lblNote.AutoSize = true;
     this.lblNote.Location = new System.Drawing.Point(10, 88);
     this.lblNote.Name     = "lblNote";
     this.lblNote.Size     = new System.Drawing.Size(37, 13);
     this.lblNote.TabIndex = 4;
     this.lblNote.Text     = "NOTE";
     this.lblNote.Visible  = false;
     //
     // lblRemedyIntro
     //
     this.lblRemedyIntro.AutoSize = true;
     this.lblRemedyIntro.Location = new System.Drawing.Point(6, 16);
     this.lblRemedyIntro.Name     = "lblRemedyIntro";
     this.lblRemedyIntro.Size     = new System.Drawing.Size(53, 13);
     this.lblRemedyIntro.TabIndex = 1;
     this.lblRemedyIntro.Text     = "REMEDY";
     //
     // remIncrease
     //
     this.remIncrease.Location = new System.Drawing.Point(65, 92);
     this.remIncrease.Name     = "remIncrease";
     this.remIncrease.Size     = new System.Drawing.Size(172, 27);
     this.remIncrease.TabIndex = 5;
     this.remIncrease.Visible  = false;
     //
     // lblIncrease
     //
     this.lblIncrease.AutoSize = true;
     this.lblIncrease.Location = new System.Drawing.Point(9, 72);
     this.lblIncrease.Name     = "lblIncrease";
     this.lblIncrease.Size     = new System.Drawing.Size(61, 13);
     this.lblIncrease.TabIndex = 6;
     this.lblIncrease.Text     = "INCREASE";
     this.lblIncrease.Visible  = false;
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.lblRemedyIntro);
     this.groupBox1.Controls.Add(this.lblIncrease);
     this.groupBox1.Controls.Add(this.chkIgnore);
     this.groupBox1.Controls.Add(this.remIncrease);
     this.groupBox1.Controls.Add(this.lblNote);
     this.groupBox1.Location = new System.Drawing.Point(12, 56);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(246, 125);
     this.groupBox1.TabIndex = 7;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "REMEDY";
     //
     // BeepTimer
     //
     this.BeepTimer.Enabled = true;
     this.BeepTimer.Tick   += new System.EventHandler(this.BeepTimer_Tick);
     //
     // frmGameEnd
     //
     this.ClientSize = new System.Drawing.Size(296, 296);
     this.ControlBox = false;
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.btnEnd);
     this.Controls.Add(this.btnStats);
     this.Controls.Add(this.btnCont);
     this.Controls.Add(this.lblReason);
     this.Controls.Add(this.lblIntro);
     this.Name = "frmGameEnd";
     this.Text = "End Game";
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }