void countryDropDownChange(DomEvent e) { ObjectStub country = new ObjectStub(getK(view.CountryDropDown), getText(view.CountryDropDown)); if (country.K == 0) { if (Country == null) setIndex(view.CountryDropDown, 0); else setK(view.CountryDropDown, Country.K); } else { addHistory("Country", country.ToString()); initialisePlaceDropDown(); } }
void placeDropDownChange(DomEvent e) { int k = getK(view.PlaceDropDown); if (k > 0) { ObjectStub place = new ObjectStub(getK(view.PlaceDropDown), getText(view.PlaceDropDown)); addHistory("Place", place.ToString()); initialiseVenueDropDown(null); initialiseDateDropDowns(); initialiseMusicDropDown(); } else { //user has clicked on one of the description or padding items... must reset to what was previously selected. setIndex(view.PlaceDropDown, placeDropDownPreviouslySelectedIndex); } placeDropDownPreviouslySelectedIndex = getIndex(view.PlaceDropDown); }
void brandDropDownChange(KeyStringPair e) { if (e.Value == null || e.Value.Length == 0) return; ObjectStub brand = new ObjectStub(int.ParseInvariant(e.Value), e.Key); if (brand.K == 0) { return; } else { addHistory("Brand", brand.ToString()); initialiseDateDropDowns(); initialiseEventDropDown(); } }
void eventDropDownChange(DomEvent e) { int k = getK(view.EventListBox); if (k > 0) { ObjectStub _event = new ObjectStub(getK(view.EventListBox), getText(view.EventListBox)); addHistory("Event", _event.ToString()); } else { //user has clicked on one of the description or padding items... must reset to what was previously selected. setIndex(view.EventListBox, eventDropDownPreviouslySelectedIndex); } eventDropDownPreviouslySelectedIndex = getIndex(view.EventListBox); }
void musicDropDownChange(DomEvent e) { if (MusicIsSelectedCurrently) { string musicTypeName = getText(view.MusicDropDown); if (musicTypeName.Substr(0, 4) == "... ") musicTypeName = musicTypeName.Substr(4); ObjectStub music = new ObjectStub(MusicSelectedCurrently, musicTypeName); addHistory("Music", music.ToString()); initialiseDateDropDowns(); } else { //user has clicked on one of the description or padding items... must reset to what was previously selected. setIndex(view.MusicDropDown, musicDropDownPreviouslySelectedIndex); } musicDropDownPreviouslySelectedIndex = getIndex(view.MusicDropDown); }
void venueByLetterDropDownChange(DomEvent e) { if (VenueByLetterDropDownIsVenueSelectedCurrently) { ObjectStub venue = new ObjectStub(VenueByLetterDropDownVenueSelectedCurrently, getText(view.VenueByLetterDropDown)); addHistory("Venue", venue.ToString()); initialiseDateDropDowns(); initialiseEventDropDown(); } }
void venueDropDownChange(DomEvent e) { if (VenueDropDownIsVenueSelectedCurrently) { ObjectStub venue = new ObjectStub(VenueDropDownVenueSelectedCurrently, getText(view.VenueDropDown)); addHistory("Venue", venue.ToString()); updateUIVenue(true); // This will update the venueByLetterDropDown if it's in the wrong visibility state... initialiseDateDropDowns(); initialiseEventDropDown(); } else if (VenueDropDownIsLetterSelectedCurrently) { string letter = VenueDropDownLetterSelectedCurrently; if (!venueByLetterDropDownIsInitialised || venueByLetterDropDownPlaceK != Place.K || venueByLetterDropDownLetter != letter) { venueByLetterDropDownPlaceK = Place.K; venueByLetterDropDownLetter = letter; VenueByLetterDropDownJ.ajaxAddOption("/support/getcached.aspx?type=venuebyletter&placek=" + Place.K + "&letter=" + letter, null, false, new Action(venueByLetterDropDownInitialised), null); } else updateUIVenue(true); } else { //user has clicked on one of the description or padding items... must reset to what was previously selected. setIndex(view.VenueDropDown, venueDropDownPreviouslySelectedIndex); } venueDropDownPreviouslySelectedIndex = getIndex(view.VenueDropDown); }