Example #1
0
        void OnItemSelected(object sender, SelectedItemChangedEventArgs e)
        {
            var occurrence = e.SelectedItem as Occurrence;
            var LogPage    = new LogPage();

            LogPage.BindingContext = occurrence;
            Navigation.PushAsync(LogPage);
        }
Example #2
0
        void Handle_Clicked(object sender, System.EventArgs e)
        {
            var occurrence = new Occurrence()
            {
                ID       = Guid.NewGuid().ToString(),
                dateTime = DateTime.Now
            };
            var LogPage = new LogPage(true);

            LogPage.BindingContext = occurrence;
            Navigation.PushAsync(LogPage);
        }
Example #3
0
        void OnAddItemClicked(object sender, EventArgs e)
        {
            var occurrence = new Occurrence()
            {
                ID       = Guid.NewGuid().ToString(),
                dateTime = DateTime.Now.ToLocalTime()
            };
            var LogPage = new LogPage(true);

            LogPage.BindingContext = occurrence;
            _occurrences.Add(occurrence);
            Navigation.PushAsync(LogPage);
        }