コード例 #1
0
        private void Accept()
        {
            _selector.SaveValue();
            Hide(false);

            DatePicked?.Invoke(this, new DatePickedEventArgs(_selector.Date, Date));
        }
コード例 #2
0
        private void OnDateSet(object sender, DatePickerDialog.DateSetEventArgs e)
        {
            var newValue = new DateTimeOffset(e.Date + Date.TimeOfDay, Date.Offset);
            var oldValue = Date;

            Date = newValue;
            DatePicked?.Invoke(this, new DatePickedEventArgs(newValue, oldValue));
        }