예제 #1
0
        public void NavigateToOperation(SwaggerOperationViewModel operationVM)
        {
            if (operationVM == SelectedOperation && _navigationIndex != -1)
            {
                return; // Don't navigate to the same page again
            }
            // Clear forward stack
            while (_navigationStack.Count > _navigationIndex + 1)
            {
                _navigationStack.RemoveAt(_navigationIndex + 1);
            }

            // Push onto stack
            _navigationStack.Add(operationVM);
            _navigationIndex++;

            RaisePropertyChangeEvents();
            _messenger.Send(new NavigatedToOperation(SelectedOperation, NavigationMode.New));
        }
예제 #2
0
 public NavigatedToOperation(SwaggerOperationViewModel operation, NavigationMode navigationMode)
 {
     Operation      = operation;
     NavigationMode = navigationMode;
 }