Beispiel #1
0
 public void GoBack()
 {
     // we discard current view and go to the history
     _stack.Pop();
     _output.Enqueue(_stack.Pop());
     _menu.EnableNavigateBackButton(_stack.Count > 1);
 }
Beispiel #2
0
        public static void Wire(ISubscriber input, IMessageQueue output, INavigateBackView menu)
        {
            var adapter = new NavigateBackController(menu, output);

            input.Subscribe <UI.NavigateCommand>(adapter);

            menu.EnableNavigateBackButton(false);
            menu.SubscribeToNavigateBack(adapter.GoBack);
        }