Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
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();
        }