Exemplo n.º 1
0
        private async void button2_Click(object sender, EventArgs e)
        {
            NetworkScanner            netScan   = new NetworkScanner(BASE_IP, new int[] { 115, 50 });
            Dictionary <string, long> addresses = await netScan.Scan(PING_TIME, TRIES_PER_IP);

            foreach (KeyValuePair <string, long> p in addresses)
            {
                textBox1.Text += string.Format("{0}:{1}", p.Key, p.Value);
            }
        }
Exemplo n.º 2
0
        public Form2()
        {
            InitializeComponent();
            instance = this;
            map      = new MapView();
            general  = new GeneralView();
            settings = new SettingsView();

            networkScanner = new NetworkScanner(BASE_IP, new int[] { 68, 69, 137 });

            settings.parent = this;
            map.setCallback(this);

            userControl.Controls.Add(general);
        }