diff options
| author | Michael <[email protected]> | 2017-03-06 11:52:42 -0500 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-03-06 11:52:49 -0500 |
| commit | 909873af65113a5808e509741a3f37f849d425ca (patch) | |
| tree | dd0adaa8ffa7d916eec8d7a839b37323bd7588d2 /ShiftOS.WinForms | |
| parent | c1567f93f3a0bad3f8ef984bf980666cb31dfd87 (diff) | |
| download | shiftos_thereturn-909873af65113a5808e509741a3f37f849d425ca.tar.gz shiftos_thereturn-909873af65113a5808e509741a3f37f849d425ca.tar.bz2 shiftos_thereturn-909873af65113a5808e509741a3f37f849d425ca.zip | |
All client-side for paid subscriptions is done.
Diffstat (limited to 'ShiftOS.WinForms')
| -rw-r--r-- | ShiftOS.WinForms/Applications/Shiftnet.cs | 2 | ||||
| -rw-r--r-- | ShiftOS.WinForms/WinformsDesktop.cs | 18 |
2 files changed, 19 insertions, 1 deletions
diff --git a/ShiftOS.WinForms/Applications/Shiftnet.cs b/ShiftOS.WinForms/Applications/Shiftnet.cs index af14f27..9540794 100644 --- a/ShiftOS.WinForms/Applications/Shiftnet.cs +++ b/ShiftOS.WinForms/Applications/Shiftnet.cs @@ -151,7 +151,7 @@ namespace ShiftOS.WinForms.Applications { })); } } - break; + return; } } diff --git a/ShiftOS.WinForms/WinformsDesktop.cs b/ShiftOS.WinForms/WinformsDesktop.cs index 42fe2c2..4f3328b 100644 --- a/ShiftOS.WinForms/WinformsDesktop.cs +++ b/ShiftOS.WinForms/WinformsDesktop.cs @@ -138,6 +138,24 @@ namespace ShiftOS.WinForms } } + if(SaveSystem.CurrentSave != null) + { + if(SaveSystem.CurrentSave.LastMonthPaid != DateTime.Now.Month) + { + if(SaveSystem.CurrentSave.Codepoints >= DownloadManager.GetAllSubscriptions()[SaveSystem.CurrentSave.ShiftnetSubscription].CostPerMonth) + { + SaveSystem.CurrentSave.Codepoints -= DownloadManager.GetAllSubscriptions()[SaveSystem.CurrentSave.ShiftnetSubscription].CostPerMonth; + SaveSystem.CurrentSave.LastMonthPaid = DateTime.Now.Month; + } + else + { + SaveSystem.CurrentSave.ShiftnetSubscription = 0; + SaveSystem.CurrentSave.LastMonthPaid = DateTime.Now.Month; + Infobox.Show("Shiftnet", "You do not have enough Codepoints to pay for your Shiftnet subscription this month. You have been downgraded to the free plan."); + } + } + } + btnnotifications.Left = lbtime.Left - btnnotifications.Width - 2; btnnotifications.Top = (desktoppanel.Height - btnnotifications.Height) / 2; }; |
