public Presenter( IView view, IWizardScenarioHost host ) { this.view = view; this.view.SetEventsHandler(this); this.host = host; }
public Presenter( IView view, IWizardScenarioHost host, IAlertPopup alerts, IFileDialogs fileDialogs ) { this.view = view; this.view.SetEventsHandler(this); this.host = host; this.alerts = alerts; this.fileDialogs = fileDialogs; }
public ModifyRegexBasedFormatScenario( IWizardScenarioHost host, IFactory fac ) { this.host = host; formatDoc = new XmlDocument(); formatDoc.LoadXml("<format><regular-grammar/></format>"); regexPage = fac.CreateRegexBasedFormatPage(host); identityPage = fac.CreateFormatIdentityPage(host, newFormatMode: false); optionsPage = fac.CreateFormatAdditionalOptionsPage(host); savePage = fac.CreateSaveFormatPage(host, newFormatMode: false); ResetFormatDocument(); }
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(); }
public Presenter( IView view, IWizardScenarioHost host, IUserDefinedFormatsManager udf, IAlertPopup alerts ) { this.view = view; this.view.SetEventsHandler(this); this.host = host; this.udf = udf; this.alerts = alerts; LoadFormatsList(); }
public Presenter( IView view, IWizardScenarioHost host, Help.IPresenter help, ITestParsing testParsing, IFactory objectsFactory ) { this.view = view; this.view.SetEventsHandler(this); this.host = host; this.help = help; this.testParsing = testParsing; this.objectsFactory = objectsFactory; }
public Presenter( IView view, IWizardScenarioHost host, IAlertPopup alerts, IFormatDefinitionsRepository repo, bool newFormatMode ) { this.view = view; this.view.SetEventsHandler(this); this.host = host; this.alerts = alerts; this.newFormatMode = newFormatMode; this.repo = repo; UpdateView(); }
public Presenter( IView view, IWizardScenarioHost host, IAlertPopup alerts, ILogProviderFactoryRegistry registry, bool newFormatMode ) { this.view = view; this.view.SetEventsHandler(this); this.host = host; this.alerts = alerts; this.newFormatMode = newFormatMode; this.registry = registry; this.view[ControlId.HeaderLabel] = newFormatMode ? "New format properties:" : "Format properties"; }
public Presenter( IView view, IWizardScenarioHost host, Help.IPresenter help, ITempFilesManager tempFilesManager, IAlertPopup alerts, IObjectFactory objectsFactory ) { this.view = view; this.view.SetEventsHandler(this); this.host = host; this.help = help; this.tempFilesManager = tempFilesManager; this.alerts = alerts; this.objectsFactory = objectsFactory; }
public Presenter( IView view, IWizardScenarioHost host, Help.IPresenter help ) { this.view = view; this.view.SetEventsHandler(this); this.host = host; this.help = help; this.dejitterBufferStepper = new LabeledStepperPresenter.Presenter(view.BufferStepperView); UpdateView(); InitEncodings(); InitDejitterGauge(); }
public Presenter( IGenericView view, IWizardScenarioHost host, Help.IPresenter help, ITestParsing testParsing, IFactory objectsFactory ) { this.view = view; this.view.SetEventsHandler(this); this.host = host; this.help = help; this.testParsing = testParsing; this.objectsFactory = objectsFactory; InitLabel(ControlId.PageTitleLabel, "Provide the data needed to parse your JSON logs"); InitLabel(ControlId.ConceptsLabel, "Learn how LogJoint uses regular expressions and JUST transformation to parse JSON logs"); InitLabel(ControlId.SampleLogLabel, "Select sample log file that can help you test your JSON format configuration"); InitLabel(ControlId.HeaderReLabel, "Construct header regular expression"); InitLabel(ControlId.TransformLabel, "Compose JUST transformation"); InitLabel(ControlId.TestLabel, "Test the data you provided. Click \"Test\" to extract the messages from sample file."); }
public ImportLog4NetScenario(IWizardScenarioHost host, IFactory 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); }
public Presenter( IGenericView view, IWizardScenarioHost host, Help.IPresenter help, ITempFilesManager tempFilesManager, IAlertPopup alerts, IObjectFactory objectsFactory ) { this.view = view; this.view.SetEventsHandler(this); this.host = host; this.help = help; this.tempFilesManager = tempFilesManager; this.alerts = alerts; this.objectsFactory = objectsFactory; this.namespaces = XmlFormat.UserDefinedFormatFactory.NamespaceManager; InitLabel(ControlId.PageTitleLabel, "Provide the data needed to parse your XML logs"); InitLabel(ControlId.ConceptsLabel, "Learn how LogJoint uses regular expressions and XSLT to parse XML logs"); InitLabel(ControlId.SampleLogLabel, "Select sample log file that can help you test your XML format configuration"); InitLabel(ControlId.HeaderReLabel, "Construct header regular expression"); InitLabel(ControlId.TransformLabel, "Compose XSL tranformation"); InitLabel(ControlId.TestLabel, "Test the data you provided. Click \"Test\" to extract the messages from sample file."); }
public ImportNLogScenario(IWizardScenarioHost host, IFactory 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); }
ImportLog4NetPage.IPresenter IObjectFactory.CreateImportLog4NetPage(IWizardScenarioHost host) { return(new ImportLog4NetPage.Presenter(viewFactories.CreateImportLog4NetPagePageView(), host, alerts, fileDialogs)); }
IFormatsWizardScenario IObjectFactory.CreateImportLog4NetScenario(IWizardScenarioHost host) { return(new ImportLog4NetScenario(host, this)); }
IFormatsWizardScenario IObjectFactory.CreateRootScenario(IWizardScenarioHost host) { return(new RootScenario(host, this)); }
ChooseOperationPage.IPresenter IObjectFactory.CreateChooseOperationPage(IWizardScenarioHost host) { return(new ChooseOperationPage.Presenter(viewFactories.CreateChooseOperationPageView(), host)); }
JsonBasedFormatPage.IPresenter IObjectFactory.CreateJsonBasedFormatPage(IWizardScenarioHost host) { return(new JsonBasedFormatPage.Presenter(viewFactories.CreateJsonBasedFormatPageView(), host, help, tempFilesManager, alerts, this)); }
SaveFormatPage.IPresenter IObjectFactory.CreateSaveFormatPage(IWizardScenarioHost host, bool newFormatMode) { return(new SaveFormatPage.Presenter(viewFactories.CreateSaveFormatPageView(), host, alerts, repo, newFormatMode)); }
FormatDeleteConfirmPage.IPresenter IObjectFactory.CreateFormatDeleteConfirmPage(IWizardScenarioHost host) { return(new FormatDeleteConfirmPage.Presenter(viewFactories.CreateFormatDeleteConfirmPageView(), host)); }
IFormatsWizardScenario IObjectFactory.CreateOperationOverExistingFormatScenario(IWizardScenarioHost host) { return(new OperationOverExistingFormatScenario(host, this)); }
ChooseExistingFormatPage.IPresenter IObjectFactory.CreateChooseExistingFormatPage(IWizardScenarioHost host) { return(new ChooseExistingFormatPage.Presenter(viewFactories.CreateChooseExistingFormatPageView(), host, userDefinedFormatsManager, alerts)); }
NLogGenerationLogPage.IPresenter IObjectFactory.CreateNLogGenerationLogPage(IWizardScenarioHost host) { return(new NLogGenerationLogPage.Presenter(viewFactories.CreateNLogGenerationLogPageView(), host)); }
JsonBasedFormatPage.IPresenter IFactory.CreateJsonBasedFormatPage(IWizardScenarioHost host) { return(new JsonBasedFormatPage.Presenter(viewFactories.CreateJsonBasedFormatPageView(), host, help, CreateTestParsing(), this)); }
FormatIdentityPage.IPresenter IObjectFactory.CreateFormatIdentityPage(IWizardScenarioHost host, bool newFormatMode) { return(new FormatIdentityPage.Presenter(viewFactories.CreateFormatIdentityPageView(), host, alerts, registry, newFormatMode)); }
FormatAdditionalOptionsPage.IPresenter IObjectFactory.CreateFormatAdditionalOptionsPage(IWizardScenarioHost host) { return(new FormatAdditionalOptionsPage.Presenter(viewFactories.CreateFormatAdditionalOptionsPage(), host, help)); }
IFormatsWizardScenario IObjectFactory.CreateDeleteFormatScenario(IWizardScenarioHost host) { return(new DeleteFormatScenario(host, alerts, this)); }
IFormatsWizardScenario IObjectFactory.CreateImportNLogScenario(IWizardScenarioHost host) { return(new ImportNLogScenario(host, this, alerts)); }
IFormatsWizardScenario IObjectFactory.CreateModifyJsonBasedFormatScenario(IWizardScenarioHost host) { return(new ModifyJsonBasedFormatScenario(host, this)); }