public static SearchParentForm GetInstance(PARENT_TYPE type)
 {
     // We close the last form if the parent type we searched for is not the same
     if (s_Instance != null && !s_Instance.ParentType.Equals(type))
     {
         s_Instance.Close();
     }
     if (s_Instance == null)
     {
         s_Instance = new SearchParentForm(type);
     }
     return(s_Instance);
 }
 private void SearchParentForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     s_Instance = null;
 }