Beispiel #1
0
        private void ControlPage_CreateTestOnClick()
        {
            LeftMenu.Visibility = Visibility.Collapsed;
            CreateTestHandlerPage createTestHandlerPage = (PageNavigator.NavigateToWithoutSaving(typeof(Control.CreateTest.CreateTestHandlerPage)) as CreateTestHandlerPage);

            createTestHandlerPage.AbortOrComplite += CreateTestHandlerPage_AbortOrComplite;
        }
Beispiel #2
0
 private void BeforeClosing(CreateTestHandlerPage sender)
 {
     (PageNavigator.GetLoadedPages().Find(x => x is Control.TestsControlPage) as Control.TestsControlPage).CreateTestOnClick -= ControlPage_CreateTestOnClick;
     sender.AbortOrComplite -= CreateTestHandlerPage_AbortOrComplite;
 }
Beispiel #3
0
 private void CreateTestHandlerPage_AbortOrComplite(CreateTestHandlerPage sender)
 {
     BeforeClosing(sender);
     LeftMenu.Visibility = Visibility.Visible;
     NavigationWorker.NavigateTo(0);
 }