예제 #1
0
        public async void fillOptions()
        {
            this.Options = await optionDAO.ListAsync();

            ////Debug.Write("****************" + Options.Count);
            //foreach (Option o in Options)
            //{
            //    Debug.Write(o.title);
            //}
            ////Debug.Write("**********************************************");
        }
예제 #2
0
        public async void init()
        {
            Options = await optionDAO.ListAsync();

            StudentsDB = await studentDAO.ListAsync();

            LessonDB = await lessonDAO.ListAsync();

            if (Options.Count == 0)
            {
                await optionDAO.SaveAsync(new models.Option("G.INFO"));

                await optionDAO.SaveAsync(new models.Option("GTR"));

                await optionDAO.SaveAsync(new models.Option("GIndus"));

                await optionDAO.SaveAsync(new models.Option("GPMC"));

                Options = await optionDAO.ListAsync();
            }
        }
예제 #3
0
 public async void fillOptions()
 {
     this.Options = await optionDAO.ListAsync();
 }