void IViewEvents.OnTestButtonClicked()
        {
            var testResult = CustomFormatPageUtils.TestParsing(
                sampleLogAccess.SampleLog,
                alerts,
                tempFilesManager,
                objectsFactory,
                formatRoot,
                "regular-grammar"
                );

            if (testResult == null)
            {
                return;
            }
            testOk = testResult.Value;
            UpdateView();
        }
예제 #2
0
        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"
                );
        }
예제 #3
0
 void InitStatusLabel(ControlId label, bool statusOk, Func <bool, string> strings)
 {
     view.SetLabelProps(label, strings(statusOk), CustomFormatPageUtils.GetLabelColor(statusOk));
 }