Esempio n. 1
0
        /// <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);
                    }
                }
            }
        }
Esempio n. 2
0
 /// <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);
             }
         }
     }
 }