Thread pool
This commit is contained in:
@@ -47,7 +47,7 @@ namespace OpenSaveCloudClient
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
LockControls(true);
|
||||
new Thread(() =>
|
||||
ThreadPool.QueueUserWorkItem(delegate
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -78,7 +78,7 @@ namespace OpenSaveCloudClient
|
||||
LockControls(false);
|
||||
});
|
||||
}
|
||||
}).Start();
|
||||
});
|
||||
}
|
||||
|
||||
private void LockControls(bool value)
|
||||
|
||||
Reference in New Issue
Block a user