예제 #1
0
 public Presenter(
     IView view,
     IWizardScenarioHost host
     )
 {
     this.view = view;
     this.view.SetEventsHandler(this);
     this.host = host;
 }
예제 #2
0
 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();
        }
예제 #6
0
 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;
 }
예제 #7
0
 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.");
 }
예제 #12
0
        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);
        }
예제 #13
0
 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.");
 }
예제 #14
0
        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);
        }
예제 #15
0
 ImportLog4NetPage.IPresenter IObjectFactory.CreateImportLog4NetPage(IWizardScenarioHost host)
 {
     return(new ImportLog4NetPage.Presenter(viewFactories.CreateImportLog4NetPagePageView(), host, alerts, fileDialogs));
 }
예제 #16
0
 IFormatsWizardScenario IObjectFactory.CreateImportLog4NetScenario(IWizardScenarioHost host)
 {
     return(new ImportLog4NetScenario(host, this));
 }
예제 #17
0
 IFormatsWizardScenario IObjectFactory.CreateRootScenario(IWizardScenarioHost host)
 {
     return(new RootScenario(host, this));
 }
예제 #18
0
 ChooseOperationPage.IPresenter IObjectFactory.CreateChooseOperationPage(IWizardScenarioHost host)
 {
     return(new ChooseOperationPage.Presenter(viewFactories.CreateChooseOperationPageView(), host));
 }
예제 #19
0
 JsonBasedFormatPage.IPresenter IObjectFactory.CreateJsonBasedFormatPage(IWizardScenarioHost host)
 {
     return(new JsonBasedFormatPage.Presenter(viewFactories.CreateJsonBasedFormatPageView(), host,
                                              help, tempFilesManager, alerts, this));
 }
예제 #20
0
 SaveFormatPage.IPresenter IObjectFactory.CreateSaveFormatPage(IWizardScenarioHost host, bool newFormatMode)
 {
     return(new SaveFormatPage.Presenter(viewFactories.CreateSaveFormatPageView(), host, alerts, repo, newFormatMode));
 }
예제 #21
0
 FormatDeleteConfirmPage.IPresenter IObjectFactory.CreateFormatDeleteConfirmPage(IWizardScenarioHost host)
 {
     return(new FormatDeleteConfirmPage.Presenter(viewFactories.CreateFormatDeleteConfirmPageView(), host));
 }
예제 #22
0
 IFormatsWizardScenario IObjectFactory.CreateOperationOverExistingFormatScenario(IWizardScenarioHost host)
 {
     return(new OperationOverExistingFormatScenario(host, this));
 }
예제 #23
0
 ChooseExistingFormatPage.IPresenter IObjectFactory.CreateChooseExistingFormatPage(IWizardScenarioHost host)
 {
     return(new ChooseExistingFormatPage.Presenter(viewFactories.CreateChooseExistingFormatPageView(), host, userDefinedFormatsManager, alerts));
 }
예제 #24
0
 NLogGenerationLogPage.IPresenter IObjectFactory.CreateNLogGenerationLogPage(IWizardScenarioHost host)
 {
     return(new NLogGenerationLogPage.Presenter(viewFactories.CreateNLogGenerationLogPageView(), host));
 }
예제 #25
0
 JsonBasedFormatPage.IPresenter IFactory.CreateJsonBasedFormatPage(IWizardScenarioHost host)
 {
     return(new JsonBasedFormatPage.Presenter(viewFactories.CreateJsonBasedFormatPageView(), host,
                                              help, CreateTestParsing(), this));
 }
예제 #26
0
 FormatIdentityPage.IPresenter IObjectFactory.CreateFormatIdentityPage(IWizardScenarioHost host, bool newFormatMode)
 {
     return(new FormatIdentityPage.Presenter(viewFactories.CreateFormatIdentityPageView(), host, alerts, registry, newFormatMode));
 }
예제 #27
0
 FormatAdditionalOptionsPage.IPresenter IObjectFactory.CreateFormatAdditionalOptionsPage(IWizardScenarioHost host)
 {
     return(new FormatAdditionalOptionsPage.Presenter(viewFactories.CreateFormatAdditionalOptionsPage(), host, help));
 }
예제 #28
0
 IFormatsWizardScenario IObjectFactory.CreateDeleteFormatScenario(IWizardScenarioHost host)
 {
     return(new DeleteFormatScenario(host, alerts, this));
 }
예제 #29
0
 IFormatsWizardScenario IObjectFactory.CreateImportNLogScenario(IWizardScenarioHost host)
 {
     return(new ImportNLogScenario(host, this, alerts));
 }
예제 #30
0
 IFormatsWizardScenario IObjectFactory.CreateModifyJsonBasedFormatScenario(IWizardScenarioHost host)
 {
     return(new ModifyJsonBasedFormatScenario(host, this));
 }