/// <summary> /// ищем компьютеры в сети /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void buttonFindComputers_Click(object sender, EventArgs e) { ShowTimeForm frm = new ShowTimeForm(); if (frm.ShowDialog(this) == DialogResult.OK) { List <DirectoryEntry> comps = frm.Computers; if (comps != null) { listView1.Items.Clear(); foreach (DirectoryEntry comp in comps) { InsertToListView(comp); } } } }
/// <summary> /// ищем компьютеры в сети /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void buttonFindComputers_Click(object sender, EventArgs e) { ShowTimeForm frm = new ShowTimeForm(); if (frm.ShowDialog(this) == DialogResult.OK) { List<DirectoryEntry> comps = frm.Computers; if (comps != null) { listView1.Items.Clear(); foreach (DirectoryEntry comp in comps) { InsertToListView(comp); } } } }