void IViewEvents.OnTestButtonClicked() { var testResult = CustomFormatPageUtils.TestParsing( sampleLogAccess.SampleLog, alerts, tempFilesManager, objectsFactory, formatRoot, "regular-grammar" ); if (testResult == null) { return; } testOk = testResult.Value; UpdateView(); }
void IViewEvents.OnTestButtonClicked() { var tmpDoc = new XmlDocument(); var tmpRoot = tmpDoc.ImportNode(currentFormatRoot, true); tmpDoc.AppendChild(tmpRoot); if (!SaveTo(tmpRoot)) { return; } CustomFormatPageUtils.TestParsing( sampleLogAccess.SampleLog, alerts, tempFilesManager, objectsFactory, tmpRoot, "xml" ); }
void InitStatusLabel(ControlId label, bool statusOk, Func <bool, string> strings) { view.SetLabelProps(label, strings(statusOk), CustomFormatPageUtils.GetLabelColor(statusOk)); }