@@ -64,6 +64,7 @@ public DateViewModel()
64
64
65
65
public IList < int > Range { get ; init ; }
66
66
67
+ // While using classic MVVM
67
68
/*
68
69
public DateTime StartDate
69
70
{
@@ -104,25 +105,25 @@ public bool DiffMode
104
105
public string SelectedMode
105
106
{
106
107
get => selectedMode;
107
- set => SetProperty(ref selectedMode, value, onChanged: FindTheResult );
108
+ set => SetProperty(ref selectedMode, value, onChanged: FindTheDate );
108
109
}
109
110
110
111
public int SelectedYear
111
112
{
112
113
get => selectedYear;
113
- set => SetProperty(ref selectedYear, value, onChanged: FindTheResult );
114
+ set => SetProperty(ref selectedYear, value, onChanged: FindTheDate );
114
115
}
115
116
116
117
public int SelectedMonth
117
118
{
118
119
get => selectedMonth;
119
- set => SetProperty(ref selectedMonth, value, onChanged: FindTheResult );
120
+ set => SetProperty(ref selectedMonth, value, onChanged: FindTheDate );
120
121
}
121
122
122
123
public int SelectedDay
123
124
{
124
125
get => selectedDay;
125
- set => SetProperty(ref selectedDay, value, onChanged: FindTheResult );
126
+ set => SetProperty(ref selectedDay, value, onChanged: FindTheDate );
126
127
}
127
128
public string ResultCaption
128
129
{
@@ -142,7 +143,7 @@ public string DiffInDays
142
143
set => SetProperty(ref diffInDays, value);
143
144
}
144
145
145
- public ICommand DiffCommand => new Command(FindTheResult );
146
+ public ICommand DiffCommand => new Command(FindTheDate );
146
147
*/
147
148
148
149
partial void OnDiffModeChanged ( bool value )
0 commit comments