//另存为 private void Button_Click_1(object sender, RoutedEventArgs e) { Microsoft.Win32.SaveFileDialog saveFileDialog = new Microsoft.Win32.SaveFileDialog(); //openFileDialog.Multiselect = false; saveFileDialog.Filter = "mdb|*.*"; saveFileDialog.ShowDialog(); SaveAddress = saveFileDialog.FileName; CreateDb createDb = new CreateDb(); createDb.createDb(extension.Text); InsertFile insertFile = new InsertFile(); insertFile.insertData(extension.Text, files, dg); String version = extension.Text; FileInfo file = new FileInfo(@"..\otherDbs\" + version + ".mdb"); file.CopyTo(SaveAddress); MainWindow mainWindow = new MainWindow(); mainWindow.Show(); this.Close(); }
//确定 private void Button_Click(object sender, RoutedEventArgs e) { String versionNum = extension.Text; CreateDb createDb = new CreateDb(); createDb.createDb(versionNum); InsertFile insertFile = new InsertFile(); insertFile.insertData(versionNum, files, dg); }
private void Button_Click_1(object sender, RoutedEventArgs e) { //MainWindow window = new MainWindow(); //window.Show(); String versionNum = extension.Text; CreateDb createDb = new CreateDb(); createDb.createDb(versionNum); InsertFile insertFile = new InsertFile(); insertFile.insertData(versionNum, files, dg); this.Close(); }