public void closeSplashScreen()
 {
     MainWindow Mainscreen = new MainWindow();
     Mainscreen.Show();
     this.Close();
     f.Stop();
     f.Equals(null);
 }
 private void mainMenuButton_Click(object sender, RoutedEventArgs e)
 {
     MainWindow getBack = new MainWindow();                          //Creates a main screen object
     getBack.Show();
     getBack.Focus();                                                //Changes the focus to the main form (avoids a second click)
     this.Close();
 }