/// <summary> /// go to date /// </summary> /// <param name="date"></param> /// <param name="viewType"></param> public void GoToDate(DateTime date, SchedulerViewType viewType) { DateTime old = _control.SelectedInterval.Start; SchedulerViewType oldViewType = _control.ActiveViewType; _innerNavigate.GoToDate(date, viewType); UndoService.AddGotoDateAction(_innerNavigate, _control.SelectedInterval.Start, old, viewType, oldViewType); }
protected override void ExecuteCore() { IDateTimeNavigationService service = (IDateTimeNavigationService)Control.GetService(typeof(IDateTimeNavigationService)); if (service != null) { service.GoToDate(NewDate); } }
public override void Undo() { navigate.GoToDate(oldValue, oldViewType); }