private void Modify_Click(object sender, RoutedEventArgs e) { OpenFile op = new OpenFile(); op.ShowDialog(); if (FileToOpen != "") { MainWindow mw = new MainWindow(); this.Close(); mw.Show(); mw.ScrollViewer.Visibility = Visibility.Visible; mw.ReloadData(FileToOpen); } }
private void taxForm_Click(object sender, RoutedEventArgs e) { isMtgForm = false; isTaxForm = true; MainWindow mw = new MainWindow(); mw.Show(); mw.ScrollViewer.Visibility = System.Windows.Visibility.Visible; this.Close(); }