示例#1
0
 private void VievLoadTestName()
 {
     testLibrary = model.CreateTest();
     vievTest.Design.TestName          = testLibrary.GetTestName();
     vievTest.Design.AmountOfQuestions = model.AmountOfQuestions(); //ilosc pytan do warunku
 }
示例#2
0
        /*public static String ModelLoadPath()
         * {
         *  string path = Directory.GetParent(Directory.GetParent(Directory.GetParent(Environment.CurrentDirectory.ToString()).ToString()).ToString()).ToString() + @"\XMLTest.xml";
         *  return path;
         * }*/

        public TestLibrary.Test CreateTest()
        {
            TestLibrary.Test tmp = new TestLibrary.Test(xml.GetAttributeValue(0, "test", "name"), PercentToPass(), CreateQuestion());
            return(tmp);
        }