private void OpenDateBaseButtonClick(object sender, RoutedEventArgs e) { OpenFileDialog d = new OpenFileDialog(); d.Filter = "Data Base file (*.db)|*.db"; if (d.ShowDialog() == true) { Core.init(d.FileName); EditWindow a = new EditWindow(); a.Show(); this.Close(); } }
private void NewBaseButtonClick(object sender, RoutedEventArgs e) { SaveFileDialog saveFileDialog = new SaveFileDialog(); saveFileDialog.Filter = "Data Base file (*.db)|*.db"; if (saveFileDialog.ShowDialog() == true) { Core.init(saveFileDialog.FileName); EditWindow a = new EditWindow(); a.Show(); this.Close(); } }