/// <summary> /// 调用编辑界面 /// </summary> public void Edit() { var shell = GlobalData.GetShell(); var editor = new EditCalendarViewModel(); editor.SetCalendar(this.CurrentCalendar.Key, this.CurrentCalendar.Value); shell.ShowDialog(editor, 700, 500); }
public void ShowAddCalendar(EditCalendarViewModel vm = null) { this.ShowDialog(vm ?? new EditCalendarViewModel(), 700, 500); }