|
|
@@ -5,12 +5,20 @@ namespace InABox.Avalonia.Components.TimeSelector;
|
|
|
|
|
|
public partial class TimeSelectorViewModel : BasePopupViewModel<TimeSpan?>
|
|
|
{
|
|
|
+ [ObservableProperty]
|
|
|
+ private TimeSpan _timeDisplay;
|
|
|
+
|
|
|
[ObservableProperty]
|
|
|
private TimeSpan? _time;
|
|
|
|
|
|
[ObservableProperty]
|
|
|
private Func<TimeSpan?>? _getTime;
|
|
|
|
|
|
+ partial void OnTimeChanged(TimeSpan? value)
|
|
|
+ {
|
|
|
+ TimeDisplay = value ?? default;
|
|
|
+ }
|
|
|
+
|
|
|
[RelayCommand]
|
|
|
private void Cancel()
|
|
|
{
|