mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-22 18:02:16 +00:00
All client-side for paid subscriptions is done.
This commit is contained in:
parent
c1567f93f3
commit
909873af65
2 changed files with 19 additions and 1 deletions
|
@ -151,7 +151,7 @@ namespace ShiftOS.WinForms.Applications {
|
|||
}));
|
||||
}
|
||||
}
|
||||
break;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue