Ejemplo n.º 1
0
        //public static async Task<List<QuestionDTO>> GetQuestions(TestDTO test)
        //{
        //    List<QuestionDTO> questions = new List<QuestionDTO>();
        //    //  using()
        //    {

        //    }
        //   return questions;
        //}

        public static async Task <List <string> > AddTest(TestDTO test, TeacherDTO teacher)
        {
            List <string> Result = new List <string>();

            //  using()
            {
            }
            return(Result);
        }
Ejemplo n.º 2
0
        public AddTestVM()
        {
            AddQuestionCommand = new AddQuestionCommand(this);
            deleteanswerComand = new DeleteAnswerComand(this);
            addanswerComand    = new AddAsnwerComand(this);

            addQuestionWindowComand = new AddQuestionWindowCommand(this);

            questions = new ObservableCollection <QuestionDTO>();
            Answers   = new ObservableCollection <AnswerOptionDTO>();
            NewTest   = new TestDTO();
        }
Ejemplo n.º 3
0
        public static async void RemoveTest(TestDTO Test)///////////////////////////////////////
        {
            /// TestthisProg testthisProg = new TestthisProg();
            /// testthisProg.NewTest();

            await proxyTest.DeleteTestAsync(Test);

            //foreach (var item in testthisProg.tests)
            //{
            //
            //    tests.Add(item);
            //}
            //  using()
            {
            }
            //  tests.Remove(Test);
        }
Ejemplo n.º 4
0
 public void RemoveTest(TestDTO test)
 {
     tests.Add(test);
 }
Ejemplo n.º 5
0
 public void AddTest(TestDTO test)
 {
     tests.Add(test);
 }