Exemplo n.º 1
0
 private void CloseScreen(ScreenConductor conductor, IScreenBase screen, bool skipRequestClose)
 {
     try {
         conductor.CloseScreen(screen, skipRequestClose);
     } catch (ScreenLifecycleException) {
     }
 }
Exemplo n.º 2
0
        public void CloseScreen_WhenScreenIsNotContained_ThrowsArgumentException()
        {
            ScreenConductor condcutor         = CreateScreenConductor();
            ScreenMock      uncontainedScreen = new ScreenMock(Aggregator);

            AssertHelper.Throws <ArgumentException>(() =>
                                                    condcutor.CloseScreen(uncontainedScreen, requestClose: true)
                                                    );
        }
        public bool CloseView(object view, bool requestClose = true)
        {
            IScreenBase screen = GetScreenForView(view);

            return(_screens.CloseScreen(screen, requestClose));
        }