public void LocationDropdownCallback()
 {
     if (!locationDropdown.creatingDropdown)
     {
         if (locationDropdown.dropdownOpen)
         {
             locationDropdown.CloseDropdown();
         }
         else
         {
             CloseAllDropdowns();
             if (locationDropdown.listSet)
             {
                 bool def = false;
                 if (sortMode.mode == "Default")
                 {
                     def = true;
                 }
                 locationDropdown.OpenDropdown(locationDropdown.dropdownModeList, new List <ListMode> {
                     locationMode
                 }, def);
             }
         }
     }
     else
     {
         CloseAllDropdowns();
     }
 }
 public void FilterDropdownCallback()
 {
     if (!filterDropdown.creatingDropdown)
     {
         if (filterDropdown.dropdownOpen)
         {
             filterDropdown.CloseDropdown();
         }
         else
         {
             CloseAllDropdowns();
             if (filterDropdown.listSet)
             {
                 filterDropdown.OpenDropdown(filterDropdown.dropdownModeList, filters, false);
             }
         }
     }
     else
     {
         CloseAllDropdowns();
     }
 }