public ModifyJsonBasedFormatScenario(
     IWizardScenarioHost host,
     IObjectFactory fac
     )
 {
     this.host = host;
     formatDoc = new XmlDocument();
     formatDoc.LoadXml("<format><json/></format>");
     jsonPage     = fac.CreateJsonBasedFormatPage(host);
     identityPage = fac.CreateFormatIdentityPage(host, newFormatMode: false);
     optionsPage  = fac.CreateFormatAdditionalOptionsPage(host);
     savePage     = fac.CreateSaveFormatPage(host, newFormatMode: false);
     ResetFormatDocument();
 }
Exemplo n.º 2
0
        public ImportLog4NetScenario(IWizardScenarioHost host, IObjectFactory fac)
        {
            this.host = host;
            doc       = new XmlDocument();
            doc.LoadXml(@"
<format>
	<regular-grammar>
		<head-re></head-re>
		<body-re></body-re>
		<fields-config></fields-config>
	</regular-grammar>
</format>");

            importPage   = fac.CreateImportLog4NetPage(host);
            identityPage = fac.CreateFormatIdentityPage(host, newFormatMode: true);
            identityPage.SetFormatRoot(doc.DocumentElement);
            optionsPage = fac.CreateFormatAdditionalOptionsPage(host);
            optionsPage.SetFormatRoot(doc.SelectSingleNode("format/regular-grammar"));
            savePage = fac.CreateSaveFormatPage(host, newFormatMode: false);
            savePage.SetDocument(doc);
        }
Exemplo n.º 3
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);
        }