private void BeforeClosing(CreateTestHandlerPage sender) { (PageNavigator.GetLoadedPages().Find(x => x is Control.TestsControlPage) as Control.TestsControlPage).CreateTestOnClick -= ControlPage_CreateTestOnClick; sender.AbortOrComplite -= CreateTestHandlerPage_AbortOrComplite; }