void Stop()
 {
     windowController?.Close();
     uiController.Stop();
     disposables.Clear();
     uiController   = null;
     currentNavItem = -1;
     navStack.Clear();
 }
Example #2
0
 public void StopUI(IUIController controller)
 {
     try
     {
         if (!controller.IsStopped)
         {
             controller.Stop();
         }
         disposables.Remove(controller);
     }
     catch (Exception ex)
     {
         log.Error("Failed to dispose UI. {0}", ex);
     }
 }
        void Stop()
        {
            if (uiController == null)
            {
                return;
            }

            DisableButtons();
            windowController?.Close();
            uiController.Stop();
            disposables.Clear();
            uiController   = null;
            currentNavItem = -1;
            navStack.Clear();
            UpdateToolbar();
        }
Example #4
0
        void Pop(IUIController controller = null)
        {
            var c = current;

            controller = controller ?? history[history.Count - 1];
            var count = history.Count;

            for (int i = 0; i < count; i++)
            {
                if (history[i] == controller)
                {
                    history.RemoveAt(i);
                    if (i <= c)
                    {
                        c--;
                    }
                    i--;
                    count--;
                }
            }
            reusableControllers.Remove(controller.SelectedFlow);
            controller.Stop();
            Pointer = c;
        }