public NetGraphForm() { InitializeComponent(); Text = UdmApplication.ProductName; toolbox.BackColor = BackColor.Desaturate(.15f).Darken(.14f); sampler = netGraph.Sampler = new NetworkInterfaceSampler(); sampler.SampleAdded += Sampler_SampleAdded; Options = new Options(Settings.Default); ApplyLoadTimeOptions(); trayIconIllustrator = new TrayIconIllustrator(); UpdateTrayIcon(); }
private void Sampler_SampleAdded(NetworkInterfaceSampler sampler, Sample sample) { UpdateStats(); UpdateTray(); }