diff options
| author | Michael <[email protected]> | 2017-05-31 19:23:40 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-31 19:23:40 -0400 |
| commit | 324104eb0b8650969b2205404e3ad83401fb100e (patch) | |
| tree | e1345eb1aee68d33eb16aaed57e9567e06a0fdf7 /ShiftOS.WinForms/StatusIcons/ShiftnetStatus.cs | |
| parent | b0da30bbde2bb198850ea45dc0006762b23f99a3 (diff) | |
| download | shiftos_thereturn-324104eb0b8650969b2205404e3ad83401fb100e.tar.gz shiftos_thereturn-324104eb0b8650969b2205404e3ad83401fb100e.tar.bz2 shiftos_thereturn-324104eb0b8650969b2205404e3ad83401fb100e.zip | |
volume control slider and other goodies
Diffstat (limited to 'ShiftOS.WinForms/StatusIcons/ShiftnetStatus.cs')
| -rw-r--r-- | ShiftOS.WinForms/StatusIcons/ShiftnetStatus.cs | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/StatusIcons/ShiftnetStatus.cs b/ShiftOS.WinForms/StatusIcons/ShiftnetStatus.cs new file mode 100644 index 0000000..f1d31af --- /dev/null +++ b/ShiftOS.WinForms/StatusIcons/ShiftnetStatus.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing; +using System.Data; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using ShiftOS.Engine; + +namespace ShiftOS.WinForms.StatusIcons +{ + [DefaultIcon("iconShiftnet")] + [RequiresUpgrade("victortran_shiftnet")] + public partial class ShiftnetStatus : UserControl, IStatusIcon + { + public ShiftnetStatus() + { + InitializeComponent(); + } + + public void Setup() + { + var subscription = Applications.DownloadManager.GetAllSubscriptions()[SaveSystem.CurrentSave.ShiftnetSubscription]; + float kilobytes = (float)subscription.DownloadSpeed / 1024F; + lbserviceprovider.Text = subscription.Name; + lbstatus.Text = $@"Company: {subscription.Company} +Download speed (KB/s): {kilobytes}"; + + } + } +} |
