コード例 #1
0
 private void VievLoadTestName()
 {
     testLibrary = model.CreateTest();
     vievTest.Design.TestName          = testLibrary.GetTestName();
     vievTest.Design.AmountOfQuestions = model.AmountOfQuestions(); //ilosc pytan do warunku
 }
コード例 #2
0
ファイル: ModelTest.cs プロジェクト: oliwiabrozek/test
        /*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);
        }