public void TaskActivated() { activeSession = new TaskSession (); documentStore.RestoreMemento (); }
public void TaskDeactivated() { documentStore.CaptureMemento (); activeSession.EndTime = DateTime.Now; Sessions.Add (activeSession); // move the item to a new session activeSession = new TaskSession (); // Store the task information by triggering an update TaskForceMain.Instance.StartTFStoreUpdate (); }