private void Button_Click(object sender, RoutedEventArgs e) { if (delta == null) { return; } DeltaParser.SaveDelta(delta, Settings.Default.SaveTo); }
private void Button_Click(object sender, RoutedEventArgs e) { if (delta == null) { return; } var dir = Utils.BrowseForFolder("Select Output Directory"); var file = "MIM_Delta_" + DateTime.Now.ToString("yyyyMMdd_hhmmss") + ".xml"; file = System.IO.Path.Combine(dir, file); DeltaParser.SaveDelta(delta, file); MessageBox.Show(string.Format("File saved as '{0}'", file), "File Saved", MessageBoxButton.OK, MessageBoxImage.Information); }
private void Save_Click(object sender, RoutedEventArgs e) { if (delta == null) { return; } Microsoft.Win32.SaveFileDialog dlg = new Microsoft.Win32.SaveFileDialog(); dlg.FileName = FilteredChangesFileName; dlg.DefaultExt = ".xml"; dlg.Filter = "Filtered Delta FIM Service objects (.xml)|*.xml|All Files (*.*)|*.*"; Nullable <bool> result = dlg.ShowDialog(); if (result == true) { DeltaParser.SaveDelta(delta, dlg.FileName); } }