From 40ad1eef2658dd1128258697546afe351939aab6 Mon Sep 17 00:00:00 2001 From: Lev Rusanov <30170278+JDM170@users.noreply.github.com> Date: Sun, 12 Mar 2023 17:34:26 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B5=D0=B3=D1=83=D0=BB=D0=B8=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=D0=BA=D0=B0=20=D1=82=D1=80=D0=B5=D0=BA=D0=B1=D0=B0?= =?UTF-8?q?=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com> --- Form1.Designer.cs | 1 + Form1.cs | 10 +++++++--- Program.cs | 3 --- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Form1.Designer.cs b/Form1.Designer.cs index 2b98156..1deeccd 100644 --- a/Form1.Designer.cs +++ b/Form1.Designer.cs @@ -155,6 +155,7 @@ this.Controls.Add(this.textBox1); this.Controls.Add(this.btn_stop); this.Controls.Add(this.btn_start); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.Name = "Form1"; this.Text = "Учимся печатать быстро"; this.Load += new System.EventHandler(this.Form1_Load); diff --git a/Form1.cs b/Form1.cs index 8df397c..459ab9e 100644 --- a/Form1.cs +++ b/Form1.cs @@ -6,7 +6,7 @@ namespace WindowsFormsApp1 { public partial class Form1 : Form { - int timerInterval = 2000; + int timerInterval = 500; int lastSymbol = 0; int pass_count = 0; int err_count = 0; @@ -20,9 +20,13 @@ namespace WindowsFormsApp1 private void Form1_Load(object sender, EventArgs e) { + this.MinimizeBox = false; + this.MaximizeBox = false; timer.Tick += new EventHandler(timerCallback); - trackBar1.Maximum = timerInterval; - trackBar1.Minimum = timerInterval - 1000; + trackBar1.Minimum = timerInterval; + //trackBar1.Maximum = timerInterval + 1000; + trackBar1.Maximum = timerInterval + 500; + trackBar1.Value = trackBar1.Maximum; } private void timerCallback(object sender, EventArgs e) diff --git a/Program.cs b/Program.cs index 38ed89c..8b71400 100644 --- a/Program.cs +++ b/Program.cs @@ -1,7 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; using System.Windows.Forms; namespace WindowsFormsApp1