Some tweaks
This commit is contained in:
1 parent
7c189bc2d9
commit
42858f847d
2 files changed
+11
-1
No files matched your search
+9
-1
@@ -39,7 +39,13 @@ namespace Test_Merge
|
||||
private async void btnSettings_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Emulator != null)
|
||||
Emulator.Stop();
|
||||
Emulator.ResetDriver();
|
||||
|
||||
Emulator = null;
|
||||
Wrapper = null;
|
||||
|
||||
GC.Collect();
|
||||
|
||||
Settings settingsForm = new Settings();
|
||||
settingsForm.ShowDialog();
|
||||
//MessageBox.Show(settingsForm.GrandPrixUrl + Environment.NewLine + settingsForm.GrandPrixName + Environment.NewLine + settingsForm.GrandPrixYear);
|
||||
@@ -171,6 +177,8 @@ namespace Test_Merge
|
||||
Emulator = null;
|
||||
Wrapper = null;
|
||||
|
||||
GC.Collect();
|
||||
|
||||
Emulator = new F1TVEmulator(GpUrl);
|
||||
errorCode = await Emulator.Start();
|
||||
});
|
||||
|
||||
@@ -359,6 +359,8 @@ namespace Test_Merge
|
||||
{
|
||||
Emulator.Stop();
|
||||
}
|
||||
Emulator = null;
|
||||
GC.Collect();
|
||||
}
|
||||
|
||||
private void btnResetDriver_Click(object sender, EventArgs e)
|
||||
|
||||
Reference in new issue
Block a user