private void button1_Click_1(object sender, RoutedEventArgs e)
 {
     SaveTreeButton_Click(null, null);
     var wind = new MainWindow();
     wind.Show();
     this.Close();
 }
 private void BackButton_Click(object sender, RoutedEventArgs e)
 {
     var tmpWind = new MainWindow();
     tmpWind.Show();
     this.Close();
 }