private void BizJetsList_LoadOnDemand(object sender, EventArgs e) { BizJets lodBizJet = new BizJets(); lodBizJet.AircraftName = "Load on Demand Aircraft"; lodBizJet.AircraftCapacity = "N/A"; (this.BizJetsList.ItemsSource as ObservableCollection <BizJets>).Add(lodBizJet); }
public ImagePage() { InitializeComponent(); BizJets IndividualBizJet = BizJetsDetailViewModel.GetIndividualBizJet(); BizJetName.Text = IndividualBizJet.AircraftName; BizJetImage.Source = new UriImageSource { Uri = new Uri(IndividualBizJet.AircraftImageURL), CachingEnabled = true, CacheValidity = new TimeSpan(5, 0, 0, 0) }; }
public BizJetDetailView(BizJets SelectedBizJet) { BizJetsDetailViewModel.SetBJDViewModel(SelectedBizJet); InitializeComponent(); }
async void BizJet_Selected(object sender, Telerik.XamarinForms.DataControls.ListView.ItemTapEventArgs e) { BizJets selectedBizJet = (BizJets)e.Item; await Navigation.PushAsync(new BizJetDetailView(selectedBizJet)); }
public static void SetBJDViewModel(BizJets SelectedBizJet) { SingletonBJDVM.IndividualBizJet = SelectedBizJet; }