public NetGraphForm() { InitializeComponent(); Text = MyApplication.ProductName; toolbox.BackColor = BackColor.Desaturate(.15f).Darken(.14f); sampler = netGraph.Sampler = new NetworkInterfaceSampler(); sampler.SampleAdded += Sampler_SampleAdded; Settings setting = new Settings() { Bounds = new Rectangle(), Topmost = true, NicSpeeds = new Dictionary <string, ulong>() }; Options = new Options(setting) { }; //(Settings.Default); ApplyLoadTimeOptions(); trayIconIllustrator = new TrayIconIllustrator(); UpdateTrayIcon(); }
private void Sampler_SampleAdded(NetworkInterfaceSampler sampler, Sample sample) { UpdateStats(); UpdateTray(); }