示例#1
0
 /// <summary>
 /// Close find users
 /// </summary>
 public void CloseFindUsers()
 {
     if (findUsersForm != null)
     {
         findUsersForm.Close();
         findUsersForm = null;
     }
 }
示例#2
0
 /// <summary>
 /// Toggle find users
 /// </summary>
 public void ToggleFindUsers()
 {
     if (findUsersForm == null)
     {
         findUsersForm = new FindUsersForm();
         findUsersForm.Show();
     }
     else
     {
         if (findUsersForm.Visible)
         {
             findUsersForm.Close();
             findUsersForm = null;
         }
         else
         {
             findUsersForm.Close();
             findUsersForm = new FindUsersForm();
             findUsersForm.Show();
         }
     }
 }