public void Execute(object parameter) { string date = (parameter as object[])[0].ToString(); CalendarViewModel calendar = (parameter as object[])[1] as CalendarViewModel; calendar.ChooseTime = date; }
public void Execute(object parameter) { CalendarViewModel calendar = parameter as CalendarViewModel; calendar.CalendarHandle.BackMonth(); calendar.TimeList = calendar.CalendarHandle.GetChooseTimeList(); calendar.TimeListTitle = calendar.CalendarHandle.GetCurrentYearMonth(); }
public void Execute(object parameter) { CalendarViewModel calendar = parameter as CalendarViewModel; calendar.TimeListVisibility = calendar.TimeListVisibility == Visibility.Collapsed ? Visibility.Visible : Visibility.Collapsed; }
public CalendarHandle(CalendarViewModel calendarViewModel) { this.mMonth = DateTime.Now.Month; this.mYear = DateTime.Now.Year; this.mCalendarViewModel = calendarViewModel; }