///<summary>
 ///Uses the HelperClass to determine Active Directory server names.
 ///</summary>
 ///<returns>void</returns>
 ///<remarks>Builds dialog box of servers</remarks>
 private void CreateServerList(string servermask)
 {
     this.lb_FileSystemOptions.Items.Clear();
     clb_FileInfo.Items.Clear();
     SortedList sl = new SortedList();
     try
     {
         ActiveDirectoryListHelper hp = new ActiveDirectoryListHelper(this.serverLDAPloc);
         sl = hp.GetServerList(servermask);
     }
     catch (Exception e)
     {
         UpdateStatusStrip("Error retrieving server list");
         string mess = string.Format("{0} Exception caught", e);
         MessageBox.Show(mess, "Error in Profile Delete",
         MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     for (int i = 0; i < sl.Count; i++)
     {
         lb_FileSystemOptions.Items.Add(sl.GetKey(i));
     }
     UpdateStatusStrip(sl.Count + " Servers found");
 }
 private SortedList CreateStudentYearList()
 {
     SortedList sl = new SortedList();
     try
     {
         //constructor for student year
         ActiveDirectoryListHelper hp = new ActiveDirectoryListHelper(this.studentLDAPloc);
         //sorted list (year,array of students)
         sl = hp.GetStudentByYearList();
     }
     catch (Exception e)
     {
         UpdateStatusStrip("Error retrieving AD list");
         string mess = string.Format("{0} Exception caught", e);
         MessageBox.Show(mess, "Error in Profile Delete",
         MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     return (sl);
 }
 /// <summary>
 /// HashTable of disabled account in AD
 /// </summary>
 /// <returns></returns>
 private Hashtable CreateADDisabledAccountHashTable()
 {
     Hashtable ht = new Hashtable();
     try
     {
         //constructor for student year
         ActiveDirectoryListHelper hp = new ActiveDirectoryListHelper(this.userLDAPloc);
         //sorted list (year,array of students)
         ht = hp.GetDisabledAccountsFLA();
     }
     catch (Exception e)
     {
         UpdateStatusStrip("Error retrieving AD list");
         string mess = string.Format("{0} Exception caught", e);
         MessageBox.Show(mess, "Error in Profile Delete",
         MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     return (ht);
 }