Exemplo n.º 1
0
        async void OnResetButtonClicked(object sender, System.EventArgs e)
        {
            if (_type == WorkshopBrowserType.All)
            {
                startDate.Date = DateTime.Now;
                endDate.Date   = DateTime.Now.AddYears(2);
            }
            else
            {
                startDate.Date = DateTime.Now.AddYears(-5);
                endDate.Date   = DateTime.Now.AddYears(2);
            }
            datePickerSwitch.IsToggled = true;
            weeksSwitch.IsToggled      = false;

            sortingPicker.SelectedIndex = sourceSortings.FindIndex(en => en == SortingsEnum.DatumStijgend);

            IsFinished?.Invoke(this, true);
            await Navigation.PopModalAsync();
        }
Exemplo n.º 2
0
 protected override bool OnBackButtonPressed()
 {
     IsFinished?.Invoke(this, true);
     return(base.OnBackButtonPressed());
 }
Exemplo n.º 3
0
 async void BackButton_OnClicked(object sender, System.EventArgs e)
 {
     IsFinished?.Invoke(this, true);
     await Navigation.PopModalAsync();
 }