コード例 #1
0
        public ImportNLogScenario(IWizardScenarioHost host, IObjectFactory fac, IAlertPopup alerts)
        {
            this.host   = host;
            this.alerts = alerts;
            doc         = new XmlDocument();
            doc.LoadXml(@"
<format>
	<regular-grammar>
		<head-re></head-re>
		<body-re></body-re>
		<fields-config></fields-config>
		<dejitter jitter-buffer-size='20'/>
	</regular-grammar>
</format>");

            importPage   = fac.CreateImportNLogPage(host);
            identityPage = fac.CreateFormatIdentityPage(host, true);
            identityPage.SetFormatRoot(doc.DocumentElement);
            optionsPage = fac.CreateFormatAdditionalOptionsPage(host);
            optionsPage.SetFormatRoot(doc.SelectSingleNode("format/regular-grammar"));
            savePage      = fac.CreateSaveFormatPage(host, false);
            importLogPage = fac.CreateNLogGenerationLogPage(host);
            savePage.SetDocument(doc);
        }