private void HandleBreadcrumbClick(int index) { _view.Save(); while (_graphs.Count > index) { _graphs.Pop(); _toolbarBreadcrumbs.PopItem(); } _current = _graphs.Peek(); LoadCurrent(); }
public static void TrimItems(this ToolbarBreadcrumbs breadcrumbs, int countToKeep) { while (breadcrumbs.childCount > countToKeep) { breadcrumbs.PopItem(); } }
private void SubstractBreadcrumb() { if (m_currentBreadcrumbs.Count == 1) { return; } ChangeNextButtonText("Next"); m_availableBreadcrumbs.Push(m_currentBreadcrumbs.Pop()); BreadcrumbData bcData = m_currentBreadcrumbs.Peek(); ChangeSlide(bcData.Slide); m_breadcrums.PopItem(); }
private void NavigateHistory(ExpressionUI instance) { if (_history.Peek() == instance) { return; } while (_breadcrumbs.childCount > 0) { _breadcrumbs.PopItem(); ExpressionUI target; if ((target = _history.Pop()) == instance) { SetFrame(target); return; } } }