void CreateDialog()
        {
            var time = TimePickerDialog.GetTime(Element);

            if (_dialog == null)
            {
                bool is24HourFormat = DateFormat.Is24HourFormat(_view.Context);
                _dialog = new ATimePickerDialog(_view.Context, TimeSelected, time.Hours, time.Minutes, is24HourFormat);

                _dialog.SetCanceledOnTouchOutside(true);

                _dialog.DismissEvent += (ss, ee) =>
                {
                    _dialog.Dispose();
                    _dialog = null;
                };

                _dialog.Show();
            }
        }
        void TimeSelected(object sender, ATimePickerDialog.TimeSetEventArgs e)
        {
            var time = new TimeSpan(e.HourOfDay, e.Minute, 0);

            TimePickerDialog.SetTime(Element, time);
        }