diff options
| author | Jason <[email protected]> | 2017-07-12 23:01:49 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-07-12 23:01:49 +0200 |
| commit | 044a0200583fcc5537f9a4d3a690bf83b4ddfd1d (patch) | |
| tree | b2102bfec9186b636b5de551321736df9f69c31a /TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTimeDistorter.cs | |
| parent | 0cd362ae501972f8745acaf285ab8a337ec6ffe4 (diff) | |
| parent | e75e11bcc81e61ccdef78279aa8d39d91c860f8c (diff) | |
| download | histacom2-044a0200583fcc5537f9a4d3a690bf83b4ddfd1d.tar.gz histacom2-044a0200583fcc5537f9a4d3a690bf83b4ddfd1d.tar.bz2 histacom2-044a0200583fcc5537f9a4d3a690bf83b4ddfd1d.zip | |
Merge pull request #123 from jayxkanz666/master
Added some stuff
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTimeDistorter.cs')
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTimeDistorter.cs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTimeDistorter.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTimeDistorter.cs index b0542ba..57fa683 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTimeDistorter.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTimeDistorter.cs @@ -1,4 +1,5 @@ using System; +using System.Threading.Tasks; using System.Windows.Forms; using TimeHACK.Engine; using TimeHACK.Engine.Template; @@ -8,9 +9,9 @@ namespace TimeHACK.OS.Win95 public partial class WinClassicTimeDistorter : UserControl { private int _counter; - private Form _action; + private Action _action; - public WinClassicTimeDistorter(string currentYear, string yearToTravel, int counter, Form action = null) + public WinClassicTimeDistorter(string currentYear, string yearToTravel, int counter, Action action = null) { InitializeComponent(); @@ -25,6 +26,8 @@ namespace TimeHACK.OS.Win95 { lblCountDown.Visible = true; btnGo.Enabled = false; + + _action?.Invoke(); countDownTimer.Start(); lblCountDown.Text = $"Preparing to travel... ETA: {_counter.ToString()} seconds"; @@ -37,10 +40,8 @@ namespace TimeHACK.OS.Win95 if (_counter == 0) { countDownTimer.Stop(); - - if (_action != null) - _action.ShowDialog(); } + lblCountDown.Text = $"Preparing to travel... ETA: {_counter.ToString()} seconds"; } } |
