private void button3_Click(object sender, RoutedEventArgs e) { MainWindow mWin = new MainWindow(); mWin.Show(); this.Close(); }