Fix error for args in CalendarUwp_ChildChanged
This commit is contained in:
Родитель
41b1f062e7
Коммит
93f3383c88
|
@ -42,7 +42,7 @@ namespace ContosoExpenses
|
|||
{
|
||||
Expense expense = new Expense
|
||||
{
|
||||
Address = txtAmount.Text,
|
||||
Address = txtLocation.Text,
|
||||
City = txtCity.Text,
|
||||
Cost = Convert.ToDouble(txtAmount.Text),
|
||||
Description = txtDescription.Text,
|
||||
|
@ -72,9 +72,9 @@ namespace ContosoExpenses
|
|||
{
|
||||
calendarView.SelectedDatesChanged += (obj, args) =>
|
||||
{
|
||||
if (calendarView.SelectedDates.Count > 0)
|
||||
{
|
||||
SelectedDate = calendarView.SelectedDates.FirstOrDefault().DateTime;
|
||||
if (args.AddedDates.Count > 0)
|
||||
{
|
||||
SelectedDate = args.AddedDates.FirstOrDefault().DateTime;
|
||||
txtDate.Text = SelectedDate.ToShortDateString();
|
||||
}
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче