Exemplo n.º 1
0
 public override void OnPause()
 {
     base.OnPause();
     if (dialog != null && dialog.IsShowing)
     {
         dialog.Dismiss();
     }
 }
Exemplo n.º 2
0
        void DeviceInfoPropertyChanged(object sender, DisplayInfoChangedEventArgs e)
        {
            DatePickerDialog currentDialog = _dialog;

            if (currentDialog != null && currentDialog.IsShowing)
            {
                currentDialog.Dismiss();
                currentDialog.CancelEvent -= OnCancelButtonClicked;

                ShowPickerDialog(currentDialog.DatePicker.Year, currentDialog.DatePicker.Month, currentDialog.DatePicker.DayOfMonth);
            }
        }
Exemplo n.º 3
0
 void DeviceInfoPropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == "CurrentOrientation")
     {
         DatePickerDialog currentDialog = _dialog;
         if (currentDialog != null && currentDialog.IsShowing)
         {
             currentDialog.Dismiss();
             CreateDatePickerDialog(currentDialog.DatePicker.Year, currentDialog.DatePicker.Month, currentDialog.DatePicker.DayOfMonth);
             _dialog.Show();
         }
     }
 }
Exemplo n.º 4
0
        private void SetResultDate(DateTime?date)
        {
            if (_datePickerDialog.IsShowing)
            {
                _datePickerDialog.Dismiss();
            }

            if (_tcsDate == null)
            {
                return;
            }

            _tcsDate.TrySetResult(date);
            _tcsDate = null;
        }
        void DeviceInfoPropertyChanged(object sender, PropertyChangedEventArgs e)
        {
            if (e.PropertyName == "CurrentOrientation")
            {
                DatePickerDialog currentDialog = _dialog;
                if (currentDialog != null && currentDialog.IsShowing)
                {
                    currentDialog.Dismiss();
                    if (Forms.IsLollipopOrNewer)
                    {
                        currentDialog.CancelEvent -= OnCancelButtonClicked;
                    }

                    ShowPickerDialog(currentDialog.DatePicker.Year, currentDialog.DatePicker.Month, currentDialog.DatePicker.DayOfMonth);
                }
            }
        }
Exemplo n.º 6
0
 internal protected override void Close()
 {
     _dialog?.Dismiss();
 }