//for the same title public void HandleHistoryNotification(NSNotification notification) { var tocID = Int32.Parse(notification.Object.ToString()); TOCNode rootTocNode = TOCDataManager.RootNodeList[0].ParentNode; TOCNode currentTocNode = PublicationContentUtil.Instance.GetTOCByTOCId(tocID, rootTocNode); if (currentTocNode != null) { TOCDataManager.GetTOCNodeListByCurrentLeafNode(currentTocNode); TOCDataManager.CurrentLeafNode = currentTocNode; TOCViewController.RefreshTableViewData(); TOCViewController.SelectTOCRectByTocID(currentTocNode.ID); } }
public void HandleHistoryNotification(NSNotification notification) { var tocID = Int32.Parse(notification.Object.ToString()); //Console.WriteLine ("nodeID:{0}",nodeID); TOCNode rootTocNode = TOCDataManager.RootNodeList[0].ParentNode; TOCNode currentTocNode = PublicationContentUtil.Instance.GetTOCByTOCId(tocID, rootTocNode); if (currentTocNode != null) { OpenPublicationContentAtTOCNode(BookID, currentTocNode); TOCDataManager.GetTOCNodeListByCurrentLeafNode(currentTocNode); TOCDataManager.CurrentLeafNode = currentTocNode; TOCViewController.RefreshTableViewData(); TOCViewController.HighlightTOCRectByTocNode(currentTocNode.TocID); } }