public void DeserializeSettings(Stream input) { try { _releaseSettings = Serialization.Read<ReleaseSettings>(input) ?? new ReleaseSettings(); } catch { _releaseSettings = new ReleaseSettings(); } }
public DmEcSetup(ref ReleaseSettings settings, IEnumerable<IExporter> exporters, IIndexField [] indexFields) { InitializeComponent(); Text = string.Format("DocumentMall Export Setup - {0}",System.Reflection.Assembly.GetExecutingAssembly().GetName().Version); _settings = settings; documentUserControl.InitializeControl(exporters, _settings.ReleaseMode, _settings.FileTypeId); LoadSettings(); PopulateDropDown(indexFields, drbDocumentType, pmDocType, bmDocType, "Custom Document Type"); PopulateDropDown(indexFields, cboSecurityKey, pmSecurityKey, bmSecurityKey, "Custom Security Key"); UpdateFileNameSetupButton(indexFields); // Commenting out the DisplayDocumentType() call // Its not in the control and I don't rememeber what it does // documentUserControl.DisplayDocumentType(false); }