//选中日期的月份画图 private void DrawTheMonth(object sender, RoutedEventArgs e) { ClearCanvas(); try { DrawPre.getListm(viewModel.NotesList, calendar.SelectedDate.Value); Draw(); } catch (System.InvalidOperationException) { Xceed.Wpf.Toolkit.MessageBox.Show("必须要选中某个日期!"); } }
//当前月份的画图 private void DrawMonth(object sender, RoutedEventArgs e) { ClearCanvas(); DrawPre.getListm(viewModel.NotesList, DateTime.Now); Draw(); }