diff --git a/20240304/Haromszog/.vs/Haromszog/v16/.suo b/20240304/Haromszog/.vs/Haromszog/v16/.suo index 451cc3d..a93eae9 100644 Binary files a/20240304/Haromszog/.vs/Haromszog/v16/.suo and b/20240304/Haromszog/.vs/Haromszog/v16/.suo differ diff --git a/20240304/Haromszog/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/20240304/Haromszog/obj/Debug/DesignTimeResolveAssemblyReferences.cache index a6920de..0e9caef 100644 Binary files a/20240304/Haromszog/obj/Debug/DesignTimeResolveAssemblyReferences.cache and b/20240304/Haromszog/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/20240304/Haromszog/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20240304/Haromszog/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index a7cb33e..ac1d037 100644 Binary files a/20240304/Haromszog/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/20240304/Haromszog/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20240304/Haromszog/obj/Debug/Haromszog.csproj.AssemblyReference.cache b/20240304/Haromszog/obj/Debug/Haromszog.csproj.AssemblyReference.cache index f5e894a..559128b 100644 Binary files a/20240304/Haromszog/obj/Debug/Haromszog.csproj.AssemblyReference.cache and b/20240304/Haromszog/obj/Debug/Haromszog.csproj.AssemblyReference.cache differ diff --git a/20240304/SzokoevEldonto/.vs/SzokoevEldonto/v16/.suo b/20240304/SzokoevEldonto/.vs/SzokoevEldonto/v16/.suo index 83e12af..968b636 100644 Binary files a/20240304/SzokoevEldonto/.vs/SzokoevEldonto/v16/.suo and b/20240304/SzokoevEldonto/.vs/SzokoevEldonto/v16/.suo differ diff --git a/20240304/SzokoevEldonto/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/20240304/SzokoevEldonto/obj/Debug/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..9ed41e9 Binary files /dev/null and b/20240304/SzokoevEldonto/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/20240304/SzokoevEldonto/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20240304/SzokoevEldonto/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index c0647a3..53d2a51 100644 Binary files a/20240304/SzokoevEldonto/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/20240304/SzokoevEldonto/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20240304/SzokoevEldonto/obj/Debug/SzokoevEldonto.csproj.AssemblyReference.cache b/20240304/SzokoevEldonto/obj/Debug/SzokoevEldonto.csproj.AssemblyReference.cache new file mode 100644 index 0000000..559128b Binary files /dev/null and b/20240304/SzokoevEldonto/obj/Debug/SzokoevEldonto.csproj.AssemblyReference.cache differ diff --git a/20240311/WindowsFormsApp1/.vs/WindowsFormsApp1/v16/.suo b/20240311/WindowsFormsApp1/.vs/WindowsFormsApp1/v16/.suo index 0e472ba..46f5a18 100644 Binary files a/20240311/WindowsFormsApp1/.vs/WindowsFormsApp1/v16/.suo and b/20240311/WindowsFormsApp1/.vs/WindowsFormsApp1/v16/.suo differ diff --git a/20240311/WindowsFormsApp1/Form1.Designer.cs b/20240311/WindowsFormsApp1/Form1.Designer.cs index f036b5e..c768f56 100644 --- a/20240311/WindowsFormsApp1/Form1.Designer.cs +++ b/20240311/WindowsFormsApp1/Form1.Designer.cs @@ -35,11 +35,14 @@ namespace WindowsFormsApp1 this.label1 = new System.Windows.Forms.Label(); this.timer1 = new System.Windows.Forms.Timer(this.components); this.textBox1 = new System.Windows.Forms.TextBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.timer2 = new System.Windows.Forms.Timer(this.components); + this.label2 = new System.Windows.Forms.Label(); this.SuspendLayout(); // // button1 // - this.button1.Location = new System.Drawing.Point(197, 262); + this.button1.Location = new System.Drawing.Point(50, 355); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(75, 23); this.button1.TabIndex = 0; @@ -49,7 +52,7 @@ namespace WindowsFormsApp1 // // button2 // - this.button2.Location = new System.Drawing.Point(421, 261); + this.button2.Location = new System.Drawing.Point(232, 355); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(75, 23); this.button2.TabIndex = 1; @@ -60,7 +63,7 @@ namespace WindowsFormsApp1 // label1 // this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(297, 191); + this.label1.Location = new System.Drawing.Point(181, 81); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(0, 13); this.label1.TabIndex = 2; @@ -74,17 +77,40 @@ namespace WindowsFormsApp1 // // textBox1 // - this.textBox1.Location = new System.Drawing.Point(395, 184); + this.textBox1.Location = new System.Drawing.Point(128, 106); this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(100, 20); this.textBox1.TabIndex = 3; this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged); // + // textBox2 + // + this.textBox2.Location = new System.Drawing.Point(128, 147); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(100, 20); + this.textBox2.TabIndex = 4; + this.textBox2.TextChanged += new System.EventHandler(this.textBox2_TextChanged); + // + // timer2 + // + this.timer2.Tick += new System.EventHandler(this.timer2_Tick); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(161, 190); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(0, 13); + this.label2.TabIndex = 5; + this.label2.Click += new System.EventHandler(this.label2_Click); + // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(800, 450); + this.ClientSize = new System.Drawing.Size(362, 450); + this.Controls.Add(this.label2); + this.Controls.Add(this.textBox2); this.Controls.Add(this.textBox1); this.Controls.Add(this.label1); this.Controls.Add(this.button2); @@ -104,6 +130,9 @@ namespace WindowsFormsApp1 private System.Windows.Forms.Label label1; private System.Windows.Forms.Timer timer1; private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.Timer timer2; + private System.Windows.Forms.Label label2; } } diff --git a/20240311/WindowsFormsApp1/Form1.cs b/20240311/WindowsFormsApp1/Form1.cs index bda7782..ed67365 100644 --- a/20240311/WindowsFormsApp1/Form1.cs +++ b/20240311/WindowsFormsApp1/Form1.cs @@ -10,11 +10,16 @@ using System.Windows.Forms; namespace WindowsFormsApp1 { + public static class Data + { + public static List idok = new List(); + } public partial class Form1 : Form { DateTime start = new DateTime(); DateTime stop = new DateTime(); TimeSpan duration = new TimeSpan(); + TimeSpan currSpan = new TimeSpan(); public Form1() { InitializeComponent(); @@ -22,7 +27,7 @@ namespace WindowsFormsApp1 private void Form1_Load(object sender, EventArgs e) { - + InitTimer(); } private void button1_Click(object sender, EventArgs e) @@ -30,6 +35,8 @@ namespace WindowsFormsApp1 start = DateTime.Now; timer1.Enabled = true; button1.Enabled = false; + + timer2.Start(); } private void button2_Click(object sender, EventArgs e) @@ -40,6 +47,18 @@ namespace WindowsFormsApp1 timer1.Enabled = false; button1.Enabled = true; + + timer2.Stop(); + + Data.idok.Append(currSpan); + + label2.Text = ""; + + foreach (var item in Data.idok) + { + string asd = item.ToString(); + label2.Text = label2.Text + asd; + } } private void label1_Click(object sender, EventArgs e) @@ -51,5 +70,29 @@ namespace WindowsFormsApp1 { textBox1.Text = DateTime.Now.ToString("HH:mm:ss:fff"); } + + private void textBox2_TextChanged(object sender, EventArgs e) + { + + } + + private void timer2_Tick(object sender, EventArgs e) + { + currSpan = DateTime.Now - start; + textBox2.Text = currSpan.ToString(); + } + + public void InitTimer() + { + timer1 = new Timer(); + timer1.Tick += new EventHandler(timer2_Tick); + timer1.Interval = 10; // in miliseconds + + } + + private void label2_Click(object sender, EventArgs e) + { + + } } } diff --git a/20240311/WindowsFormsApp1/Form1.resx b/20240311/WindowsFormsApp1/Form1.resx index 1f666f2..f94dad1 100644 --- a/20240311/WindowsFormsApp1/Form1.resx +++ b/20240311/WindowsFormsApp1/Form1.resx @@ -120,4 +120,7 @@ 17, 17 + + 104, 17 + \ No newline at end of file diff --git a/20240311/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.exe b/20240311/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.exe index bc7f814..ae60e00 100644 Binary files a/20240311/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.exe and b/20240311/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.exe differ diff --git a/20240311/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.pdb b/20240311/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.pdb index c2198a3..ebdf6b7 100644 Binary files a/20240311/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.pdb and b/20240311/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.pdb differ diff --git a/20240311/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/20240311/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferences.cache index a6920de..0e9caef 100644 Binary files a/20240311/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferences.cache and b/20240311/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/20240311/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20240311/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index 3661937..2159a90 100644 Binary files a/20240311/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/20240311/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20240311/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.Form1.resources b/20240311/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.Data.resources similarity index 100% rename from 20240311/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.Form1.resources rename to 20240311/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.Data.resources diff --git a/20240311/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.FileListAbsolute.txt b/20240311/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.FileListAbsolute.txt index 0b2ae14..0c5e5f7 100644 --- a/20240311/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.FileListAbsolute.txt +++ b/20240311/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.FileListAbsolute.txt @@ -8,3 +8,13 @@ C:\Users\szabomarton\Desktop\C#\20240311\WindowsFormsApp1\obj\Debug\WindowsForms C:\Users\szabomarton\Desktop\C#\20240311\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csproj.CoreCompileInputs.cache C:\Users\szabomarton\Desktop\C#\20240311\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.exe C:\Users\szabomarton\Desktop\C#\20240311\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.pdb +C:\Users\szabomarton\Desktop\C#\ProgaOra\20240311\WindowsFormsApp1\bin\Debug\WindowsFormsApp1.exe.config +C:\Users\szabomarton\Desktop\C#\ProgaOra\20240311\WindowsFormsApp1\bin\Debug\WindowsFormsApp1.exe +C:\Users\szabomarton\Desktop\C#\ProgaOra\20240311\WindowsFormsApp1\bin\Debug\WindowsFormsApp1.pdb +C:\Users\szabomarton\Desktop\C#\ProgaOra\20240311\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csproj.AssemblyReference.cache +C:\Users\szabomarton\Desktop\C#\ProgaOra\20240311\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.Properties.Resources.resources +C:\Users\szabomarton\Desktop\C#\ProgaOra\20240311\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csproj.GenerateResource.cache +C:\Users\szabomarton\Desktop\C#\ProgaOra\20240311\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\C#\ProgaOra\20240311\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.exe +C:\Users\szabomarton\Desktop\C#\ProgaOra\20240311\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.pdb +C:\Users\szabomarton\Desktop\C#\ProgaOra\20240311\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.Data.resources diff --git a/20240311/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.GenerateResource.cache b/20240311/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.GenerateResource.cache index f2a27de..afc013d 100644 Binary files a/20240311/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.GenerateResource.cache and b/20240311/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.GenerateResource.cache differ diff --git a/20240311/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.exe b/20240311/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.exe index bc7f814..ae60e00 100644 Binary files a/20240311/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.exe and b/20240311/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.exe differ diff --git a/20240311/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.pdb b/20240311/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.pdb index c2198a3..ebdf6b7 100644 Binary files a/20240311/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.pdb and b/20240311/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.pdb differ