void IViewEvents.OnTestButtonClicked() { var testResult = testParsing.Test( sampleLogAccess.SampleLog, formatRoot, "regular-grammar" ); if (testResult == null) { return; } testOk = testResult.Value; UpdateView(); }
void ICCEViewEvents.OnTestButtonClicked() { var tmpDoc = new XmlDocument(); var tmpRoot = tmpDoc.ImportNode(currentFormatRoot, true); tmpDoc.AppendChild(tmpRoot); if (!SaveTo(tmpRoot)) { return; } testParsing.Test( sampleLogAccess.SampleLog, tmpRoot, "xml" ); }