Fix typecast

This commit is contained in:
Travis Nickles 2018-02-04 14:18:49 -06:00
parent 86ee71e596
commit 1cfa8356d9

View File

@ -106,7 +106,7 @@ namespace DS4Windows
{ {
Process.Start(exepath + "\\Virtual Bus Driver"); Process.Start(exepath + "\\Virtual Bus Driver");
File.Delete(exepath + "\\VBus.zip"); File.Delete(exepath + "\\VBus.zip");
((Timer)sender).Stop(); ((NonFormTimer)sender).Stop();
this.BeginInvoke((Action)(() => { bnStep1.Text = Properties.Resources.InstallFailed; }), null); this.BeginInvoke((Action)(() => { bnStep1.Text = Properties.Resources.InstallFailed; }), null);
return; return;
} }
@ -132,7 +132,7 @@ namespace DS4Windows
catch { } catch { }
File.Delete(exepath + "\\VBus.zip"); File.Delete(exepath + "\\VBus.zip");
((Timer)sender).Stop(); ((NonFormTimer)sender).Stop();
} }
} }