public void Start(MethodTestData data) { dlgMethodTest dlg = new dlgMethodTest(); dlg.LoadData(data); dlg.TopMost = true; dlg.ShowDialog(null); }
public bool LoadData(ITestData test) { data = (MethodTestData)test; XmlDocument doc = new XmlDocument(); doc.LoadXml(data.FullContents); testData = doc.DocumentElement.SelectSingleNode(data.XPath); if (testData == null) { throw new MathException(string.Format(System.Globalization.CultureInfo.InvariantCulture, "Invalid xpath '{0}' for the test node", data.XPath)); } return(true); }