Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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();
        }
Esempio n. 4
0
        async void BizJet_Selected(object sender, Telerik.XamarinForms.DataControls.ListView.ItemTapEventArgs e)
        {
            BizJets selectedBizJet = (BizJets)e.Item;

            await Navigation.PushAsync(new BizJetDetailView(selectedBizJet));
        }
Esempio n. 5
0
 public static void SetBJDViewModel(BizJets SelectedBizJet)
 {
     SingletonBJDVM.IndividualBizJet = SelectedBizJet;
 }