/// <summary> /// create and register a URL describing the current context, for use in going backwards and forwards /// </summary> protected virtual void UpdateContextHistory() { //are we the dominant pane? The thinking here is that if our clerk is controlling the record tree bar, then we are. // The second condition prevents recording the intermediate record in the history when following a link // causes us to change areas and then change records. if (Clerk.IsControllingTheRecordTreeBar && string.IsNullOrEmpty(m_propertyTable.GetStringProperty("SuspendLoadingRecordUntilOnJumpToRecord", null))) { //add our current state to the history system string toolName = m_propertyTable.GetStringProperty("currentContentControl", ""); Guid guid = Guid.Empty; if (Clerk.CurrentObject != null) { guid = Clerk.CurrentObject.Guid; } Clerk.SelectedRecordChanged(true, true); // make sure we update the record count in the Status bar. m_mediator.SendMessage("AddContextToHistory", new FwLinkArgs(toolName, guid), false); } }