Example #1
0
        private void Export()
        {
            if (this.navigator.SelectedAssemblyGroup == null)
            {
                return;
            }

            if (exportFileDialog.ShowDialog(this) == DialogResult.OK)
            {
                _ac.WriteReport(exportFileDialog.FileName, AssemblyComparisonXmlWriteMode.Normal);

                Process.Start(exportFileDialog.FileName);
            }
        }
        private void Export()
        {
            if (this.navigator.SelectedAssemblyGroup == null)
            {
                return;
            }

            SaveFileDialog sfd = new SaveFileDialog();

            sfd.Filter          = "HTML Report (*.html)|*.html|XML Report (*.xml)|*.xml";
            sfd.CheckPathExists = true;
            sfd.AddExtension    = true;

            if (sfd.ShowDialog(this) == DialogResult.OK)
            {
                _ac.WriteReport(sfd.FileName, AssemblyComparisonXmlWriteMode.Normal);

                Process.Start(sfd.FileName);
            }
        }