├── PlainOldThread ├── App.config ├── DestroyThreadExample.cs ├── LockExample.cs ├── PlainOldThread.csproj ├── Program.cs ├── Properties │ └── AssemblyInfo.cs ├── SimpleThreadExample.cs ├── bin │ └── Debug │ │ ├── PlainOldThread.exe │ │ ├── PlainOldThread.exe.config │ │ ├── PlainOldThread.pdb │ │ ├── PlainOldThread.vshost.exe │ │ ├── PlainOldThread.vshost.exe.config │ │ └── PlainOldThread.vshost.exe.manifest └── obj │ └── Debug │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ ├── PlainOldThread.csproj.FileListAbsolute.txt │ ├── PlainOldThread.csprojResolveAssemblyReference.cache │ ├── PlainOldThread.exe │ ├── PlainOldThread.pdb │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs ├── Tutorials.sln └── UpdateUI ├── App.config ├── Form1.Designer.cs ├── Form1.cs ├── Form1.resx ├── Form2.Designer.cs ├── Form2.cs ├── Form2.resx ├── Program.cs ├── Properties ├── AssemblyInfo.cs ├── Resources.Designer.cs ├── Resources.resx ├── Settings.Designer.cs └── Settings.settings ├── UpdateUI.csproj ├── bin └── Debug │ ├── UpdateUI.exe │ ├── UpdateUI.exe.config │ ├── UpdateUI.pdb │ ├── UpdateUI.vshost.exe │ ├── UpdateUI.vshost.exe.config │ └── UpdateUI.vshost.exe.manifest └── obj └── Debug ├── DesignTimeResolveAssemblyReferences.cache ├── DesignTimeResolveAssemblyReferencesInput.cache ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs ├── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs ├── UpdateUI.Form1.resources ├── UpdateUI.Form2.resources ├── UpdateUI.Properties.Resources.resources ├── UpdateUI.csproj.FileListAbsolute.txt ├── UpdateUI.csproj.GenerateResource.Cache ├── UpdateUI.csprojResolveAssemblyReference.cache ├── UpdateUI.exe └── UpdateUI.pdb /PlainOldThread/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /PlainOldThread/DestroyThreadExample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading; 6 | using System.Threading.Tasks; 7 | 8 | namespace PlainOldThread 9 | { 10 | public class DestroyThreadExample 11 | { 12 | public bool IsCancelled { get; set; } 13 | 14 | public Thread MyThread { get; set; } 15 | 16 | public void StartThread() 17 | { 18 | MyThread = new Thread(() => 19 | { 20 | int numberOfSeconds = 0; 21 | while (numberOfSeconds < 8) 22 | { 23 | if (IsCancelled == false) 24 | { 25 | break; 26 | } 27 | 28 | Thread.Sleep(1000); 29 | 30 | numberOfSeconds++; 31 | } 32 | 33 | Console.WriteLine("I ran for {0} seconds", numberOfSeconds); 34 | }); 35 | } 36 | 37 | public void Abort() 38 | { 39 | //Destroy thread 40 | MyThread.Abort(); 41 | } 42 | 43 | public void GracefulAbort() 44 | { 45 | IsCancelled = true; 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /PlainOldThread/LockExample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading; 6 | using System.Threading.Tasks; 7 | 8 | namespace PlainOldThread 9 | { 10 | 11 | 12 | public class LockExample 13 | { 14 | 15 | public int SharedResource { get; set; } 16 | 17 | public object _locker = 0; 18 | 19 | public void StartThreadAccessingSharedResource() 20 | { 21 | Thread t1 = new Thread(() => 22 | { 23 | lock (_locker) 24 | { 25 | SharedResource++; 26 | } 27 | 28 | }); 29 | 30 | Thread t2 = new Thread(() => 31 | { 32 | lock (_locker) 33 | { 34 | SharedResource--; 35 | } 36 | 37 | }); 38 | 39 | t1.Start(); 40 | t2.Start(); 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /PlainOldThread/PlainOldThread.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {32476029-9A8B-4D86-A7F4-F8622EF35F66} 8 | Exe 9 | Properties 10 | PlainOldThread 11 | PlainOldThread 12 | v4.5.2 13 | 512 14 | true 15 | 16 | 17 | AnyCPU 18 | true 19 | full 20 | false 21 | bin\Debug\ 22 | DEBUG;TRACE 23 | prompt 24 | 4 25 | 26 | 27 | AnyCPU 28 | pdbonly 29 | true 30 | bin\Release\ 31 | TRACE 32 | prompt 33 | 4 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 63 | -------------------------------------------------------------------------------- /PlainOldThread/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace PlainOldThread 8 | { 9 | class Program 10 | { 11 | static void Main(string[] args) 12 | { 13 | SimpleThreadExample st = new SimpleThreadExample(); 14 | st.StartMultipleThread(); 15 | 16 | Console.ReadLine(); 17 | 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /PlainOldThread/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("PlainOldThread")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("PlainOldThread")] 13 | [assembly: AssemblyCopyright("Copyright © 2016")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("32476029-9a8b-4d86-a7f4-f8622ef35f66")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /PlainOldThread/SimpleThreadExample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading; 6 | using System.Threading.Tasks; 7 | 8 | namespace PlainOldThread 9 | { 10 | public class SimpleThreadExample 11 | { 12 | 13 | public void StartMultipleThread() 14 | { 15 | DateTime startTime = DateTime.Now; 16 | 17 | Thread t1 = new Thread(() => 18 | { 19 | int numberOfSeconds = 0; 20 | while (numberOfSeconds < 5) 21 | { 22 | Thread.Sleep(1000); 23 | 24 | numberOfSeconds++; 25 | } 26 | 27 | Console.WriteLine("I ran for 5 seconds"); 28 | }); 29 | 30 | Thread t2 = new Thread(() => 31 | { 32 | int numberOfSeconds = 0; 33 | while (numberOfSeconds < 8) 34 | { 35 | Thread.Sleep(1000); 36 | 37 | numberOfSeconds++; 38 | } 39 | 40 | Console.WriteLine("I ran for 8 seconds"); 41 | }); 42 | 43 | 44 | //parameterized thread 45 | Thread t3 = new Thread(p => 46 | { 47 | int numberOfSeconds = 0; 48 | while (numberOfSeconds < Convert.ToInt32(p)) 49 | { 50 | Thread.Sleep(1000); 51 | 52 | numberOfSeconds++; 53 | } 54 | 55 | Console.WriteLine("I ran for {0} seconds", numberOfSeconds); 56 | }); 57 | 58 | t1.Start(); 59 | t2.Start(); 60 | //passing parameter to parameterized thread 61 | t3.Start(20); 62 | 63 | //wait for t1 to fimish 64 | t1.Join(); 65 | 66 | //wait for t2 to finish 67 | t2.Join(); 68 | 69 | //wait for t3 to finish 70 | t3.Join(); 71 | 72 | 73 | Console.WriteLine("All Threads Exited in {0} secods", (DateTime.Now - startTime).TotalSeconds); 74 | } 75 | 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /PlainOldThread/bin/Debug/PlainOldThread.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bibekdw/CSharp-Threading-Tutorial-For-Beginners/d83130f7dc93b083c45c579efd8b3892c8baf307/PlainOldThread/bin/Debug/PlainOldThread.exe -------------------------------------------------------------------------------- /PlainOldThread/bin/Debug/PlainOldThread.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /PlainOldThread/bin/Debug/PlainOldThread.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bibekdw/CSharp-Threading-Tutorial-For-Beginners/d83130f7dc93b083c45c579efd8b3892c8baf307/PlainOldThread/bin/Debug/PlainOldThread.pdb -------------------------------------------------------------------------------- /PlainOldThread/bin/Debug/PlainOldThread.vshost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bibekdw/CSharp-Threading-Tutorial-For-Beginners/d83130f7dc93b083c45c579efd8b3892c8baf307/PlainOldThread/bin/Debug/PlainOldThread.vshost.exe -------------------------------------------------------------------------------- /PlainOldThread/bin/Debug/PlainOldThread.vshost.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /PlainOldThread/bin/Debug/PlainOldThread.vshost.exe.manifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /PlainOldThread/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bibekdw/CSharp-Threading-Tutorial-For-Beginners/d83130f7dc93b083c45c579efd8b3892c8baf307/PlainOldThread/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /PlainOldThread/obj/Debug/PlainOldThread.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\Example\Tutorials\PlainOldThread\bin\Debug\PlainOldThread.exe.config 2 | C:\Example\Tutorials\PlainOldThread\bin\Debug\PlainOldThread.exe 3 | C:\Example\Tutorials\PlainOldThread\bin\Debug\PlainOldThread.pdb 4 | C:\Example\Tutorials\PlainOldThread\obj\Debug\PlainOldThread.csprojResolveAssemblyReference.cache 5 | C:\Example\Tutorials\PlainOldThread\obj\Debug\PlainOldThread.exe 6 | C:\Example\Tutorials\PlainOldThread\obj\Debug\PlainOldThread.pdb 7 | C:\Example\Tutorials\CSharp-Threading-Tutorial-For-Beginners\PlainOldThread\bin\Debug\PlainOldThread.exe.config 8 | C:\Example\Tutorials\CSharp-Threading-Tutorial-For-Beginners\PlainOldThread\obj\Debug\PlainOldThread.exe 9 | C:\Example\Tutorials\CSharp-Threading-Tutorial-For-Beginners\PlainOldThread\obj\Debug\PlainOldThread.pdb 10 | -------------------------------------------------------------------------------- /PlainOldThread/obj/Debug/PlainOldThread.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bibekdw/CSharp-Threading-Tutorial-For-Beginners/d83130f7dc93b083c45c579efd8b3892c8baf307/PlainOldThread/obj/Debug/PlainOldThread.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /PlainOldThread/obj/Debug/PlainOldThread.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bibekdw/CSharp-Threading-Tutorial-For-Beginners/d83130f7dc93b083c45c579efd8b3892c8baf307/PlainOldThread/obj/Debug/PlainOldThread.exe -------------------------------------------------------------------------------- /PlainOldThread/obj/Debug/PlainOldThread.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bibekdw/CSharp-Threading-Tutorial-For-Beginners/d83130f7dc93b083c45c579efd8b3892c8baf307/PlainOldThread/obj/Debug/PlainOldThread.pdb -------------------------------------------------------------------------------- /PlainOldThread/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bibekdw/CSharp-Threading-Tutorial-For-Beginners/d83130f7dc93b083c45c579efd8b3892c8baf307/PlainOldThread/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /PlainOldThread/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bibekdw/CSharp-Threading-Tutorial-For-Beginners/d83130f7dc93b083c45c579efd8b3892c8baf307/PlainOldThread/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /PlainOldThread/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bibekdw/CSharp-Threading-Tutorial-For-Beginners/d83130f7dc93b083c45c579efd8b3892c8baf307/PlainOldThread/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /Tutorials.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.25420.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PlainOldThread", "PlainOldThread\PlainOldThread.csproj", "{32476029-9A8B-4D86-A7F4-F8622EF35F66}" 7 | EndProject 8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UpdateUI", "UpdateUI\UpdateUI.csproj", "{E27F278B-301A-4135-83E9-75DA71B8F863}" 9 | EndProject 10 | Global 11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 12 | Debug|Any CPU = Debug|Any CPU 13 | Debug|ARM = Debug|ARM 14 | Debug|x64 = Debug|x64 15 | Debug|x86 = Debug|x86 16 | Release|Any CPU = Release|Any CPU 17 | Release|ARM = Release|ARM 18 | Release|x64 = Release|x64 19 | Release|x86 = Release|x86 20 | EndGlobalSection 21 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 22 | {32476029-9A8B-4D86-A7F4-F8622EF35F66}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 23 | {32476029-9A8B-4D86-A7F4-F8622EF35F66}.Debug|Any CPU.Build.0 = Debug|Any CPU 24 | {32476029-9A8B-4D86-A7F4-F8622EF35F66}.Debug|ARM.ActiveCfg = Debug|Any CPU 25 | {32476029-9A8B-4D86-A7F4-F8622EF35F66}.Debug|ARM.Build.0 = Debug|Any CPU 26 | {32476029-9A8B-4D86-A7F4-F8622EF35F66}.Debug|x64.ActiveCfg = Debug|Any CPU 27 | {32476029-9A8B-4D86-A7F4-F8622EF35F66}.Debug|x64.Build.0 = Debug|Any CPU 28 | {32476029-9A8B-4D86-A7F4-F8622EF35F66}.Debug|x86.ActiveCfg = Debug|Any CPU 29 | {32476029-9A8B-4D86-A7F4-F8622EF35F66}.Debug|x86.Build.0 = Debug|Any CPU 30 | {32476029-9A8B-4D86-A7F4-F8622EF35F66}.Release|Any CPU.ActiveCfg = Release|Any CPU 31 | {32476029-9A8B-4D86-A7F4-F8622EF35F66}.Release|Any CPU.Build.0 = Release|Any CPU 32 | {32476029-9A8B-4D86-A7F4-F8622EF35F66}.Release|ARM.ActiveCfg = Release|Any CPU 33 | {32476029-9A8B-4D86-A7F4-F8622EF35F66}.Release|ARM.Build.0 = Release|Any CPU 34 | {32476029-9A8B-4D86-A7F4-F8622EF35F66}.Release|x64.ActiveCfg = Release|Any CPU 35 | {32476029-9A8B-4D86-A7F4-F8622EF35F66}.Release|x64.Build.0 = Release|Any CPU 36 | {32476029-9A8B-4D86-A7F4-F8622EF35F66}.Release|x86.ActiveCfg = Release|Any CPU 37 | {32476029-9A8B-4D86-A7F4-F8622EF35F66}.Release|x86.Build.0 = Release|Any CPU 38 | {E27F278B-301A-4135-83E9-75DA71B8F863}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 39 | {E27F278B-301A-4135-83E9-75DA71B8F863}.Debug|Any CPU.Build.0 = Debug|Any CPU 40 | {E27F278B-301A-4135-83E9-75DA71B8F863}.Debug|ARM.ActiveCfg = Debug|Any CPU 41 | {E27F278B-301A-4135-83E9-75DA71B8F863}.Debug|ARM.Build.0 = Debug|Any CPU 42 | {E27F278B-301A-4135-83E9-75DA71B8F863}.Debug|x64.ActiveCfg = Debug|Any CPU 43 | {E27F278B-301A-4135-83E9-75DA71B8F863}.Debug|x64.Build.0 = Debug|Any CPU 44 | {E27F278B-301A-4135-83E9-75DA71B8F863}.Debug|x86.ActiveCfg = Debug|Any CPU 45 | {E27F278B-301A-4135-83E9-75DA71B8F863}.Debug|x86.Build.0 = Debug|Any CPU 46 | {E27F278B-301A-4135-83E9-75DA71B8F863}.Release|Any CPU.ActiveCfg = Release|Any CPU 47 | {E27F278B-301A-4135-83E9-75DA71B8F863}.Release|Any CPU.Build.0 = Release|Any CPU 48 | {E27F278B-301A-4135-83E9-75DA71B8F863}.Release|ARM.ActiveCfg = Release|Any CPU 49 | {E27F278B-301A-4135-83E9-75DA71B8F863}.Release|ARM.Build.0 = Release|Any CPU 50 | {E27F278B-301A-4135-83E9-75DA71B8F863}.Release|x64.ActiveCfg = Release|Any CPU 51 | {E27F278B-301A-4135-83E9-75DA71B8F863}.Release|x64.Build.0 = Release|Any CPU 52 | {E27F278B-301A-4135-83E9-75DA71B8F863}.Release|x86.ActiveCfg = Release|Any CPU 53 | {E27F278B-301A-4135-83E9-75DA71B8F863}.Release|x86.Build.0 = Release|Any CPU 54 | EndGlobalSection 55 | GlobalSection(SolutionProperties) = preSolution 56 | HideSolutionNode = FALSE 57 | EndGlobalSection 58 | EndGlobal 59 | -------------------------------------------------------------------------------- /UpdateUI/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /UpdateUI/Form1.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace UpdateUI 2 | { 3 | partial class Form1 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.btnStart = new System.Windows.Forms.Button(); 32 | this.lblStopWatch = new System.Windows.Forms.Label(); 33 | this.btnStop = new System.Windows.Forms.Button(); 34 | this.SuspendLayout(); 35 | // 36 | // btnStart 37 | // 38 | this.btnStart.Location = new System.Drawing.Point(315, 80); 39 | this.btnStart.Name = "btnStart"; 40 | this.btnStart.Size = new System.Drawing.Size(104, 61); 41 | this.btnStart.TabIndex = 0; 42 | this.btnStart.Text = "Start"; 43 | this.btnStart.UseVisualStyleBackColor = true; 44 | this.btnStart.Click += new System.EventHandler(this.btnStart_Click); 45 | // 46 | // lblStopWatch 47 | // 48 | this.lblStopWatch.AutoSize = true; 49 | this.lblStopWatch.Location = new System.Drawing.Point(317, 217); 50 | this.lblStopWatch.Name = "lblStopWatch"; 51 | this.lblStopWatch.Size = new System.Drawing.Size(102, 20); 52 | this.lblStopWatch.TabIndex = 1; 53 | this.lblStopWatch.Text = "00:00:00:000"; 54 | // 55 | // btnStop 56 | // 57 | this.btnStop.Location = new System.Drawing.Point(464, 80); 58 | this.btnStop.Name = "btnStop"; 59 | this.btnStop.Size = new System.Drawing.Size(104, 61); 60 | this.btnStop.TabIndex = 0; 61 | this.btnStop.Text = "Stop"; 62 | this.btnStop.UseVisualStyleBackColor = true; 63 | this.btnStop.Click += new System.EventHandler(this.btnStop_Click); 64 | // 65 | // Form1 66 | // 67 | this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); 68 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 69 | this.ClientSize = new System.Drawing.Size(774, 388); 70 | this.Controls.Add(this.lblStopWatch); 71 | this.Controls.Add(this.btnStop); 72 | this.Controls.Add(this.btnStart); 73 | this.Name = "Form1"; 74 | this.Text = "Form1"; 75 | this.ResumeLayout(false); 76 | this.PerformLayout(); 77 | 78 | } 79 | 80 | #endregion 81 | 82 | private System.Windows.Forms.Button btnStart; 83 | private System.Windows.Forms.Label lblStopWatch; 84 | private System.Windows.Forms.Button btnStop; 85 | } 86 | } 87 | 88 | -------------------------------------------------------------------------------- /UpdateUI/Form1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading; 9 | using System.Threading.Tasks; 10 | using System.Windows.Forms; 11 | 12 | namespace UpdateUI 13 | { 14 | public partial class Form1 : Form 15 | { 16 | public delegate void UpdateLabel(string label); 17 | 18 | public bool IsCancelled { get; set; } 19 | 20 | public Form1() 21 | { 22 | InitializeComponent(); 23 | } 24 | 25 | private void UpdateUI(string labelText) 26 | { 27 | lblStopWatch.Text = labelText; 28 | } 29 | 30 | private void btnStart_Click(object sender, EventArgs e) 31 | { 32 | DateTime startTime = DateTime.Now; 33 | 34 | IsCancelled = false; 35 | 36 | Thread t = new Thread(() => 37 | { 38 | while (IsCancelled==false) 39 | { 40 | Thread.Sleep(1000); 41 | 42 | string timeElapsedInstring = (DateTime.Now - startTime).ToString(@"hh\:mm\:ss"); 43 | 44 | lblStopWatch.Invoke(new UpdateLabel(UpdateUI), timeElapsedInstring); 45 | 46 | } 47 | }); 48 | 49 | 50 | t.Start(); 51 | } 52 | 53 | private void btnStop_Click(object sender, EventArgs e) 54 | { 55 | IsCancelled = true; 56 | } 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /UpdateUI/Form1.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | -------------------------------------------------------------------------------- /UpdateUI/Form2.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace UpdateUI 2 | { 3 | partial class Form2 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.lblStopWatch = new System.Windows.Forms.Label(); 32 | this.btnStop = new System.Windows.Forms.Button(); 33 | this.btnStart = new System.Windows.Forms.Button(); 34 | this.btnCancel = new System.Windows.Forms.Button(); 35 | this.SuspendLayout(); 36 | // 37 | // lblStopWatch 38 | // 39 | this.lblStopWatch.AutoSize = true; 40 | this.lblStopWatch.Location = new System.Drawing.Point(15, 181); 41 | this.lblStopWatch.Name = "lblStopWatch"; 42 | this.lblStopWatch.Size = new System.Drawing.Size(102, 20); 43 | this.lblStopWatch.TabIndex = 4; 44 | this.lblStopWatch.Text = "00:00:00:000"; 45 | // 46 | // btnStop 47 | // 48 | this.btnStop.Location = new System.Drawing.Point(162, 44); 49 | this.btnStop.Name = "btnStop"; 50 | this.btnStop.Size = new System.Drawing.Size(104, 61); 51 | this.btnStop.TabIndex = 2; 52 | this.btnStop.Text = "Stop"; 53 | this.btnStop.UseVisualStyleBackColor = true; 54 | this.btnStop.Click += new System.EventHandler(this.btnStop_Click); 55 | // 56 | // btnStart 57 | // 58 | this.btnStart.Location = new System.Drawing.Point(13, 44); 59 | this.btnStart.Name = "btnStart"; 60 | this.btnStart.Size = new System.Drawing.Size(104, 61); 61 | this.btnStart.TabIndex = 3; 62 | this.btnStart.Text = "Start"; 63 | this.btnStart.UseVisualStyleBackColor = true; 64 | this.btnStart.Click += new System.EventHandler(this.btnStart_Click); 65 | // 66 | // btnCancel 67 | // 68 | this.btnCancel.Location = new System.Drawing.Point(295, 44); 69 | this.btnCancel.Name = "btnCancel"; 70 | this.btnCancel.Size = new System.Drawing.Size(104, 61); 71 | this.btnCancel.TabIndex = 2; 72 | this.btnCancel.Text = "Cancel"; 73 | this.btnCancel.UseVisualStyleBackColor = true; 74 | this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); 75 | // 76 | // Form2 77 | // 78 | this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); 79 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 80 | this.ClientSize = new System.Drawing.Size(421, 244); 81 | this.Controls.Add(this.lblStopWatch); 82 | this.Controls.Add(this.btnCancel); 83 | this.Controls.Add(this.btnStop); 84 | this.Controls.Add(this.btnStart); 85 | this.Name = "Form2"; 86 | this.Text = "Form2"; 87 | this.ResumeLayout(false); 88 | this.PerformLayout(); 89 | 90 | } 91 | 92 | #endregion 93 | 94 | private System.Windows.Forms.Label lblStopWatch; 95 | private System.Windows.Forms.Button btnStop; 96 | private System.Windows.Forms.Button btnStart; 97 | private System.Windows.Forms.Button btnCancel; 98 | } 99 | } -------------------------------------------------------------------------------- /UpdateUI/Form2.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading; 9 | using System.Threading.Tasks; 10 | using System.Windows.Forms; 11 | 12 | namespace UpdateUI 13 | { 14 | public partial class Form2 : Form 15 | { 16 | BackgroundWorker workerThread = null; 17 | 18 | bool _keepRunning = false; 19 | 20 | public Form2() 21 | { 22 | InitializeComponent(); 23 | 24 | InstantiateWorkerThread(); 25 | } 26 | 27 | private void InstantiateWorkerThread() 28 | { 29 | workerThread = new BackgroundWorker(); 30 | workerThread.ProgressChanged += WorkerThread_ProgressChanged; 31 | workerThread.DoWork += WorkerThread_DoWork; 32 | workerThread.RunWorkerCompleted += WorkerThread_RunWorkerCompleted; 33 | workerThread.WorkerReportsProgress = true; 34 | workerThread.WorkerSupportsCancellation = true; 35 | } 36 | 37 | private void WorkerThread_ProgressChanged(object sender, ProgressChangedEventArgs e) 38 | { 39 | lblStopWatch.Text = e.UserState.ToString(); 40 | } 41 | 42 | private void WorkerThread_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) 43 | { 44 | if(e.Cancelled) 45 | { 46 | lblStopWatch.Text = "Cancelled"; 47 | } 48 | else 49 | { 50 | lblStopWatch.Text = "Stopped"; 51 | } 52 | } 53 | 54 | private void WorkerThread_DoWork(object sender, DoWorkEventArgs e) 55 | { 56 | DateTime startTime = DateTime.Now; 57 | 58 | _keepRunning = true; 59 | 60 | while (_keepRunning) 61 | { 62 | Thread.Sleep(1000); 63 | 64 | string timeElapsedInstring = (DateTime.Now - startTime).ToString(@"hh\:mm\:ss"); 65 | 66 | workerThread.ReportProgress(0, timeElapsedInstring); 67 | 68 | if(workerThread.CancellationPending) 69 | { 70 | // this is important as it set the cancelled property of RunWorkerCompletedEventArgs to true 71 | e.Cancel = true; 72 | break; 73 | } 74 | } 75 | } 76 | 77 | private void btnStart_Click(object sender, EventArgs e) 78 | { 79 | workerThread.RunWorkerAsync(); 80 | } 81 | 82 | private void btnStop_Click(object sender, EventArgs e) 83 | { 84 | _keepRunning = false; 85 | } 86 | 87 | private void btnCancel_Click(object sender, EventArgs e) 88 | { 89 | workerThread.CancelAsync(); 90 | } 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /UpdateUI/Form2.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | -------------------------------------------------------------------------------- /UpdateUI/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.Windows.Forms; 6 | 7 | namespace UpdateUI 8 | { 9 | static class Program 10 | { 11 | /// 12 | /// The main entry point for the application. 13 | /// 14 | [STAThread] 15 | static void Main() 16 | { 17 | Application.EnableVisualStyles(); 18 | Application.SetCompatibleTextRenderingDefault(false); 19 | Application.Run(new Form2()); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /UpdateUI/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("UpdateUI")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("UpdateUI")] 13 | [assembly: AssemblyCopyright("Copyright © 2016")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("e27f278b-301a-4135-83e9-75da71b8f863")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /UpdateUI/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace UpdateUI.Properties 12 | { 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources 26 | { 27 | 28 | private static global::System.Resources.ResourceManager resourceMan; 29 | 30 | private static global::System.Globalization.CultureInfo resourceCulture; 31 | 32 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 33 | internal Resources() 34 | { 35 | } 36 | 37 | /// 38 | /// Returns the cached ResourceManager instance used by this class. 39 | /// 40 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 41 | internal static global::System.Resources.ResourceManager ResourceManager 42 | { 43 | get 44 | { 45 | if ((resourceMan == null)) 46 | { 47 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("UpdateUI.Properties.Resources", typeof(Resources).Assembly); 48 | resourceMan = temp; 49 | } 50 | return resourceMan; 51 | } 52 | } 53 | 54 | /// 55 | /// Overrides the current thread's CurrentUICulture property for all 56 | /// resource lookups using this strongly typed resource class. 57 | /// 58 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 59 | internal static global::System.Globalization.CultureInfo Culture 60 | { 61 | get 62 | { 63 | return resourceCulture; 64 | } 65 | set 66 | { 67 | resourceCulture = value; 68 | } 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /UpdateUI/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | text/microsoft-resx 107 | 108 | 109 | 2.0 110 | 111 | 112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 113 | 114 | 115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | -------------------------------------------------------------------------------- /UpdateUI/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace UpdateUI.Properties 12 | { 13 | 14 | 15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] 17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase 18 | { 19 | 20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 21 | 22 | public static Settings Default 23 | { 24 | get 25 | { 26 | return defaultInstance; 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /UpdateUI/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /UpdateUI/UpdateUI.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {E27F278B-301A-4135-83E9-75DA71B8F863} 8 | WinExe 9 | Properties 10 | UpdateUI 11 | UpdateUI 12 | v4.5.2 13 | 512 14 | true 15 | 16 | 17 | AnyCPU 18 | true 19 | full 20 | false 21 | bin\Debug\ 22 | DEBUG;TRACE 23 | prompt 24 | 4 25 | 26 | 27 | AnyCPU 28 | pdbonly 29 | true 30 | bin\Release\ 31 | TRACE 32 | prompt 33 | 4 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | Form 51 | 52 | 53 | Form1.cs 54 | 55 | 56 | Form 57 | 58 | 59 | Form2.cs 60 | 61 | 62 | 63 | 64 | Form1.cs 65 | 66 | 67 | Form2.cs 68 | 69 | 70 | ResXFileCodeGenerator 71 | Resources.Designer.cs 72 | Designer 73 | 74 | 75 | True 76 | Resources.resx 77 | 78 | 79 | SettingsSingleFileGenerator 80 | Settings.Designer.cs 81 | 82 | 83 | True 84 | Settings.settings 85 | True 86 | 87 | 88 | 89 | 90 | 91 | 92 | 99 | -------------------------------------------------------------------------------- /UpdateUI/bin/Debug/UpdateUI.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bibekdw/CSharp-Threading-Tutorial-For-Beginners/d83130f7dc93b083c45c579efd8b3892c8baf307/UpdateUI/bin/Debug/UpdateUI.exe -------------------------------------------------------------------------------- /UpdateUI/bin/Debug/UpdateUI.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /UpdateUI/bin/Debug/UpdateUI.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bibekdw/CSharp-Threading-Tutorial-For-Beginners/d83130f7dc93b083c45c579efd8b3892c8baf307/UpdateUI/bin/Debug/UpdateUI.pdb -------------------------------------------------------------------------------- /UpdateUI/bin/Debug/UpdateUI.vshost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bibekdw/CSharp-Threading-Tutorial-For-Beginners/d83130f7dc93b083c45c579efd8b3892c8baf307/UpdateUI/bin/Debug/UpdateUI.vshost.exe -------------------------------------------------------------------------------- /UpdateUI/bin/Debug/UpdateUI.vshost.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /UpdateUI/bin/Debug/UpdateUI.vshost.exe.manifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /UpdateUI/obj/Debug/DesignTimeResolveAssemblyReferences.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bibekdw/CSharp-Threading-Tutorial-For-Beginners/d83130f7dc93b083c45c579efd8b3892c8baf307/UpdateUI/obj/Debug/DesignTimeResolveAssemblyReferences.cache -------------------------------------------------------------------------------- /UpdateUI/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bibekdw/CSharp-Threading-Tutorial-For-Beginners/d83130f7dc93b083c45c579efd8b3892c8baf307/UpdateUI/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /UpdateUI/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bibekdw/CSharp-Threading-Tutorial-For-Beginners/d83130f7dc93b083c45c579efd8b3892c8baf307/UpdateUI/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /UpdateUI/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bibekdw/CSharp-Threading-Tutorial-For-Beginners/d83130f7dc93b083c45c579efd8b3892c8baf307/UpdateUI/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /UpdateUI/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bibekdw/CSharp-Threading-Tutorial-For-Beginners/d83130f7dc93b083c45c579efd8b3892c8baf307/UpdateUI/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /UpdateUI/obj/Debug/UpdateUI.Form1.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bibekdw/CSharp-Threading-Tutorial-For-Beginners/d83130f7dc93b083c45c579efd8b3892c8baf307/UpdateUI/obj/Debug/UpdateUI.Form1.resources -------------------------------------------------------------------------------- /UpdateUI/obj/Debug/UpdateUI.Form2.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bibekdw/CSharp-Threading-Tutorial-For-Beginners/d83130f7dc93b083c45c579efd8b3892c8baf307/UpdateUI/obj/Debug/UpdateUI.Form2.resources -------------------------------------------------------------------------------- /UpdateUI/obj/Debug/UpdateUI.Properties.Resources.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bibekdw/CSharp-Threading-Tutorial-For-Beginners/d83130f7dc93b083c45c579efd8b3892c8baf307/UpdateUI/obj/Debug/UpdateUI.Properties.Resources.resources -------------------------------------------------------------------------------- /UpdateUI/obj/Debug/UpdateUI.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\Example\Tutorials\UpdateUI\bin\Debug\UpdateUI.exe.config 2 | C:\Example\Tutorials\UpdateUI\bin\Debug\UpdateUI.exe 3 | C:\Example\Tutorials\UpdateUI\bin\Debug\UpdateUI.pdb 4 | C:\Example\Tutorials\UpdateUI\obj\Debug\UpdateUI.csprojResolveAssemblyReference.cache 5 | C:\Example\Tutorials\UpdateUI\obj\Debug\UpdateUI.Form1.resources 6 | C:\Example\Tutorials\UpdateUI\obj\Debug\UpdateUI.Properties.Resources.resources 7 | C:\Example\Tutorials\UpdateUI\obj\Debug\UpdateUI.csproj.GenerateResource.Cache 8 | C:\Example\Tutorials\UpdateUI\obj\Debug\UpdateUI.exe 9 | C:\Example\Tutorials\UpdateUI\obj\Debug\UpdateUI.pdb 10 | C:\Example\Tutorials\UpdateUI\obj\Debug\UpdateUI.Form2.resources 11 | -------------------------------------------------------------------------------- /UpdateUI/obj/Debug/UpdateUI.csproj.GenerateResource.Cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bibekdw/CSharp-Threading-Tutorial-For-Beginners/d83130f7dc93b083c45c579efd8b3892c8baf307/UpdateUI/obj/Debug/UpdateUI.csproj.GenerateResource.Cache -------------------------------------------------------------------------------- /UpdateUI/obj/Debug/UpdateUI.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bibekdw/CSharp-Threading-Tutorial-For-Beginners/d83130f7dc93b083c45c579efd8b3892c8baf307/UpdateUI/obj/Debug/UpdateUI.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /UpdateUI/obj/Debug/UpdateUI.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bibekdw/CSharp-Threading-Tutorial-For-Beginners/d83130f7dc93b083c45c579efd8b3892c8baf307/UpdateUI/obj/Debug/UpdateUI.exe -------------------------------------------------------------------------------- /UpdateUI/obj/Debug/UpdateUI.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bibekdw/CSharp-Threading-Tutorial-For-Beginners/d83130f7dc93b083c45c579efd8b3892c8baf307/UpdateUI/obj/Debug/UpdateUI.pdb --------------------------------------------------------------------------------