private void GoMainMenu_Click_Pause(object sender, RoutedEventArgs e) { focusedPauses = pauseReport.answer1.Text; MainCanvas.Children.Remove(pauseReport); pauseReport = null; doGestureReflection(); }
void doPausesesReflection() { pauseReport = new PauseReport(); MainCanvas.Children.Add(pauseReport); Canvas.SetLeft(pauseReport, 20); Canvas.SetTop(pauseReport, 20); pauseReport.GoMainMenu.Click += GoMainMenu_Click_Pause; }