private void GetBackup(object sender, RoutedEventArgs e) { System.Windows.Forms.SaveFileDialog SF = new System.Windows.Forms.SaveFileDialog(); SF.Title = "Save Backup File"; SF.Filter = "Standard Zip File (*.Zip) |*.zip"; if (SF.ShowDialog() == System.Windows.Forms.DialogResult.OK) { DBConnection.GetBackup(SF.FileName); MessageBox.Show("Backup Complete.", "Backup Manager", MessageBoxButton.OK, MessageBoxImage.Information); } } private void RestorBackup(object sender, RoutedEventArgs e) { System.Windows.Forms.OpenFileDialog RF = new System.Windows.Forms.OpenFileDialog(); RF.Title = "Restor Backup File"; RF.Filter = "Standard Zip File (*.Zip) |*.zip"; if (RF.ShowDialog() == System.Windows.Forms.DialogResult.OK) { DBConnection.RetBackup(RF.FileName); MessageBox.Show("Restor Complete.", "Backup Manager", MessageBoxButton.OK, MessageBoxImage.Information); } }
System.Windows.MessageBox
Microsoft.Win32
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)