blob: f1d31af3b3da642ec3cf8b0f4230435f3ae6b153 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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}";
}
}
}
|