/// <summary>
 /// Demands authentication from the owner and then allows the owner to select users the he or she would like to deny access to their computer
 /// </summary>
 private static void ManageAccounts(object sender, System.EventArgs e)
 {
     bool isCanceled = OwnerLock("OwnerFeature", "Invalidate Users");
     if (!isCanceled)
     {
         UserSelection us = new UserSelection("Delete");
         us.ShowDialog();
         if (!us.canceled)
         {
             try
             {
                 ss.WriteString("DeleteUsers");
                 if (ss.ReadString().Equals("Ready"))
                 {
                     foreach (string user in us.invalidUsers)
                     {
                         ss.WriteString(user);
                         if (!ss.ReadString().Equals("Next"))
                         {
                             MessageBox.Show("Error");
                             break;
                         }
                     }
                 }
                 ss.WriteString("Done");
                 if (!ss.ReadString().Equals("Success"))
                     MessageBox.Show("Manage Accounts Error");
             }
             catch (Exception ex)
             {
                 MessageBox.Show(ex.ToString());
             }
         }
         us.Dispose();
     }
 }
 /// <summary>
 /// Demands authentication from the owner and changes the owner of the machine<\returns>
 /// </summary>
 private static void ChangeOwner(object sender, System.EventArgs e)
 {
     bool isCanceled = OwnerLock("OwnerFeature", "Change Owner");
     if (!isCanceled)
     {
         UserSelection us = new UserSelection("Owner");
         us.ShowDialog();
         if (!us.canceled)
         {
             try
             {
                 ss.WriteString("ChangeOwner");
                 if (ss.ReadString().Equals("Ready"))
                 {
                     ss.WriteString(us.newOwner);
                 }
                 if (!ss.ReadString().Equals("Success"))
                     MessageBox.Show("Change Owner Error");
             }
             catch (Exception ex)
             {
                 MessageBox.Show(ex.ToString());
             }
         }
         us.Dispose();
     }
 }