Beispiel #1
0
        private void autodescobertaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            using (var autoDisc = new AutoDiscoveryForm())
            {
                var result = autoDisc.ShowDialog(this);

                if (autoDisc.Hosts != null && autoDisc.Hosts.Count > 0)
                {
                    foreach (var item in autoDisc.Hosts)
                    {
                        this.Hosts.Add(item);
                    }

                    hostList_UpdateStatusBar(null, null);
                    hostList.Focus();
                }
            }
        }
Beispiel #2
0
        private void autodescobertaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            using (var autoDisc = new AutoDiscoveryForm())
            {
                var result = autoDisc.ShowDialog(this);

                if (autoDisc.Hosts != null && autoDisc.Hosts.Count > 0)
                {
                    foreach (var item in autoDisc.Hosts)
                        this.Hosts.Add(item);

                    hostList_UpdateStatusBar(null, null);
                    hostList.Focus();
                }
            }
        }