private void BackButton_Click(object sender, RoutedEventArgs e) { //string path = System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "Saved Budgets"); string path = System.IO.Path.Combine((Environment.CurrentDirectory), "Saved Budgets"); string fullPath = System.IO.Path.Combine(path, openFileName); trySave(fullPath); saveToDb(); StartWindow sw = new StartWindow(); sw.Show(); this.Close(); }