From d39a372b3ab2d8da7644a084ac68e00e9a55ad7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tommy=20=C3=96man?= Date: Thu, 30 Jun 2022 23:23:16 +0200 Subject: [PATCH] Nya ResultatRutor --- WinGreed/frmPersonRound.Designer.cs | 24 +++++++++++++++++ WinGreed/frmPersonRound.cs | 41 ++++++++++++++++++++++------- 2 files changed, 55 insertions(+), 10 deletions(-) diff --git a/WinGreed/frmPersonRound.Designer.cs b/WinGreed/frmPersonRound.Designer.cs index ea03d1d..206f922 100644 --- a/WinGreed/frmPersonRound.Designer.cs +++ b/WinGreed/frmPersonRound.Designer.cs @@ -37,6 +37,8 @@ this.btnDiceTmpl6 = new System.Windows.Forms.Button(); this.btnDiceTmpl5 = new System.Windows.Forms.Button(); this.btnClose = new System.Windows.Forms.Button(); + this.txtMaxValue = new System.Windows.Forms.TextBox(); + this.txtChosenValue = new System.Windows.Forms.TextBox(); this.SuspendLayout(); // // label1 @@ -135,11 +137,31 @@ this.btnClose.UseVisualStyleBackColor = true; this.btnClose.Click += new System.EventHandler(this.btnClose_Click); // + // txtMaxValue + // + this.txtMaxValue.Location = new System.Drawing.Point(669, 82); + this.txtMaxValue.Multiline = true; + this.txtMaxValue.Name = "txtMaxValue"; + this.txtMaxValue.Size = new System.Drawing.Size(42, 44); + this.txtMaxValue.TabIndex = 9; + this.txtMaxValue.Visible = false; + // + // txtChosenValue + // + this.txtChosenValue.Location = new System.Drawing.Point(669, 126); + this.txtChosenValue.Multiline = true; + this.txtChosenValue.Name = "txtChosenValue"; + this.txtChosenValue.Size = new System.Drawing.Size(42, 44); + this.txtChosenValue.TabIndex = 10; + this.txtChosenValue.Visible = false; + // // frmPersonRound // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(800, 450); + this.Controls.Add(this.txtChosenValue); + this.Controls.Add(this.txtMaxValue); this.Controls.Add(this.btnClose); this.Controls.Add(this.btnDiceTmpl6); this.Controls.Add(this.btnDiceTmpl5); @@ -168,5 +190,7 @@ private Button btnDiceTmpl6; private Button btnDiceTmpl5; private Button btnClose; + private TextBox txtMaxValue; + private TextBox txtChosenValue; } } \ No newline at end of file diff --git a/WinGreed/frmPersonRound.cs b/WinGreed/frmPersonRound.cs index d11f668..dfda5f0 100644 --- a/WinGreed/frmPersonRound.cs +++ b/WinGreed/frmPersonRound.cs @@ -12,7 +12,7 @@ using System.Diagnostics; namespace WinGreed { public partial class frmPersonRound : Form - { + { int y = 79; int x = 0; int row = 0; @@ -33,13 +33,13 @@ namespace WinGreed private void btnThrow_Click(object sender, EventArgs e) { - + x = 0; - y = y + btnDiceTmpl1.Height+5; + y = y + btnDiceTmpl1.Height + 5; var no = 0; var result = _ht.Throw(); - + Button btn = null; MarkGrayAndDisable(row); @@ -56,7 +56,7 @@ namespace WinGreed { btn = btnDiceTmpl1.Clone