Do not auto populate accessor, and close if weare trying to open another one

This commit is contained in:
Michael Becker 2016-01-27 17:07:57 -05:00
parent 6a6d536f87
commit c0deccbf40

View File

@ -1300,7 +1300,7 @@ namespace UniversalEditor.Engines.WindowsForms
DocumentPropertiesDialog dlg = new DocumentPropertiesDialog();
dlg.ObjectModel = doc.ObjectModel;
dlg.DataFormat = doc.DataFormat;
dlg.Accessor = doc.Accessor;
dlg.Accessor = null; // doc.Accessor;
dlg.Mode = DocumentPropertiesDialogMode.Save;
if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
@ -1368,6 +1368,12 @@ namespace UniversalEditor.Engines.WindowsForms
}
doc.DataFormat = df;
if (doc.OutputAccessor.IsOpen)
{
doc.OutputAccessor.Close();
}
doc.OutputAccessor = new FileAccessor(FileName, true, true, true);
doc.Save();