private void Single_User_Search(string userID)
{
//Clear the bindings
userBinding.Clear();
if (userID != "")
{
try
{
//Add the user object if it's found
userBinding.Add(new ADUser(ad, ad.GetUser(userID)));
}
catch (ADNotFound ex)
{
//Not found, write out a message
Write(ex.Message);
}
catch (Exception ex)
{
//Unknown error, pop up an error box
Error_Message(ex.Message);
}
//Set the status box accordingly
Set_Status("Search " + toSucceeded(userBinding.Count > 0));
}
//Update the display
update_Display();
}