private void StartButton_Click(object sender, RoutedEventArgs e) { TestManager TM = new TestManager(); UserEvents.OnUserStartedTest(this, new StartedTestEventArgs("Hadi", "Medium")); Test t = new Test(TM); t.Show(); }