private void Restart_Click(object v, RoutedEventArgs e) { test.userName = C_UserName.Text; testWindow testWin = new testWindow(test); testWin.Show(); this.Close(); }
private void StartTest_Click(object sender, RoutedEventArgs e) { if (testSelected) { testWindow testWin = new testWindow(test); testWin.Show(); this.Close(); } else { MessageBox.Show("Выберете тест!"); } }