private void Accept() { _selector.SaveValue(); Hide(false); DatePicked?.Invoke(this, new DatePickedEventArgs(_selector.Date, Date)); }
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)); }