コード例 #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            if (delta == null)
            {
                return;
            }

            DeltaParser.SaveDelta(delta, Settings.Default.SaveTo);
        }
コード例 #2
0
ファイル: MainWindow.xaml.cs プロジェクト: kcrosby/FIMDelta
        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);
        }
コード例 #3
0
        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);
            }
        }