コード例 #1
0
        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();
        }
コード例 #2
0
 private void Sampler_SampleAdded(NetworkInterfaceSampler sampler, Sample sample)
 {
     UpdateStats();
     UpdateTray();
 }