Ejemplo n.º 1
0
        private async void btnViewRecords_Clicked(object sender, EventArgs e)
        {
            RecordList  Record      = new RecordList();
            OfferRecord offerRecord = new OfferRecord();

            Record.BindingContext = offerRecord;
            await Navigation.PushAsync(Record);
        }
Ejemplo n.º 2
0
        private async void List_ItemSelected(object sender, SelectedItemChangedEventArgs e)
        {
            OfferRecord selectedRecord = (OfferRecord)e.SelectedItem;
            RecordView  record         = new RecordView();

            record.BindingContext = selectedRecord;
            await Navigation.PushAsync(record);
        }
Ejemplo n.º 3
0
 public AddRecord()
 {
     InitializeComponent();
     Appearing += (s, e) =>
     {
         add.Clicked += async(se, ee) =>
         {
             OfferRecord saveContent = new OfferRecord();
             try
             {
                 saveContent.Population = Convert.ToInt32(entryPopulation.Text);
             }
             catch (Exception ex) { throw ex; }
             saveContent.Type        = (string)typePicker.SelectedItem;
             saveContent.Category    = (string)categoryPicker.SelectedItem;
             saveContent.Description = entryDescription.Text;
             saveContent.ViewImage   = entryImage.Text;
             saveContent.Name        = entryName.Text;
             App.Database.SaveOffer(saveContent);
             await Navigation.PushAsync(new ViewList());
         };
     };
 }