private void OnCountryCodeIndexChanged(object sender, System.EventArgs e) { Controls.CustomPicker picker = sender as Controls.CustomPicker; if (picker.SelectedIndex == -1) { return; } }
private void OnInstaBoxInfo(object sender, System.EventArgs e) { Controls.CustomPicker picker = sender as Controls.CustomPicker; if (picker.SelectedIndex == -1) { return; } }
private void PickerSelectedIndexChanged(object sender, System.EventArgs e) { Controls.CustomPicker picker = sender as Controls.CustomPicker; if (viewModel != null) { Models.Country country = picker.SelectedItem as Models.Country; viewModel.CountryId = country.Id; } }
private void OnBookingConfirmationCode(object sender, System.EventArgs e) { Controls.CustomPicker picker = sender as Controls.CustomPicker; if (picker.SelectedIndex == -1) { return; } else { viewModel.GetAvailableRoomsCommand.Execute(picker.SelectedIndex); } }
private void CardListSelectedIndexChanged(object sender, System.EventArgs e) { Controls.CustomPicker picker = sender as Controls.CustomPicker; if (viewModel != null) { Models.CardDetailResponse card = picker.SelectedItem as Models.CardDetailResponse; if (card != null) { viewModel.CardId = card.id; viewModel.GetCardDetailsCommand.Execute(null); } } }
private void InvoiceAddressSelectedIndexChanged(object sender, System.EventArgs e) { Controls.CustomPicker picker = sender as Controls.CustomPicker; if (viewModel != null) { Models.InvoiceAddressResponse invoiceAddress = picker.SelectedItem as Models.InvoiceAddressResponse; if (invoiceAddress != null) { viewModel.InvoiceAddressId = invoiceAddress.Id; viewModel.InvoiceAddressDetailCommand.Execute(null); } } }
private void AddressesListSelectedIndexChanged(object sender, System.EventArgs e) { Controls.CustomPicker picker = sender as Controls.CustomPicker; if (viewModel != null) { Models.AddressesResponse address = picker.SelectedItem as Models.AddressesResponse; if (address != null) { viewModel.SelectedAddressId = address.Id; viewModel.GetDeliveryAddressDetailCommand.Execute(null); } } }
private void OnHotelRoomCode(object sender, System.EventArgs e) { Controls.CustomPicker picker = sender as Controls.CustomPicker; if (picker.SelectedIndex == -1) { return; } else if (!viewModel.IsSelected) { viewModel.IsSelected = true; } }