Skip to content

Commit

Permalink
清空日期控件的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
aduskin committed Feb 17, 2020
1 parent b9d258b commit 741150e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/AduSkin/Controls/Metro/AduDatePickers/AduDatePicker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1038,14 +1038,16 @@ private void ClearSelectedDates()
this.SelectedDates.Clear();
this.SelectedDateStart = null;
this.SelectedDateEnd = null;

this.SelectedDateTime = null;
if (this.PART_Calendar != null)
{
this.SelectedDate = null;
this.PART_Calendar.SelectedDate = null;
this.PART_Calendar.SelectedDates.Clear();
}
if (this.PART_Calendar_Second != null)
{
this.SelectedDate = null;
this.PART_Calendar_Second.SelectedDate = null;
this.PART_Calendar_Second.SelectedDates.Clear();
}
Expand Down

0 comments on commit 741150e

Please sign in to comment.