コード例 #1
0
        public GrantsPage()
        {
            Resources = new Xamarin.Forms.ResourceDictionary();
            grants    = new List <GrantsData>();

            LoadGrantsDataFromJson();

            InitializeComponent();
        }
コード例 #2
0
        public StudentInfoPage()
        {
            Resources    = new Xamarin.Forms.ResourceDictionary();
            modelStudent = new List <ViewModelStudent>();

            jsInfoStudent = new GetJsToUrl(url, name);
            var localJsonGrants             = DependencyService.Get <ISaveAndLoad>().LoadText(name);
            var deserializedJsonInfoStudent = JsonConvert.DeserializeObject <StudentInfoJS>(localJsonGrants);


            modelStudent.Add(ConvertStudentInfo("ФИО", deserializedJsonInfoStudent.Fio));
            modelStudent.Add(ConvertStudentInfo("Номер зачетной книжки", deserializedJsonInfoStudent.StudentNumber));
            modelStudent.Add(ConvertStudentInfo("Факультет (институт)", deserializedJsonInfoStudent.Oop.Faculty));
            modelStudent.Add(ConvertStudentInfo("Направление (специальность)", deserializedJsonInfoStudent.Oop.FullSpzName));
            modelStudent.Add(ConvertStudentInfo("Профиль", deserializedJsonInfoStudent.Oop.FullStdName));
            modelStudent.Add(ConvertStudentInfo("Курс", deserializedJsonInfoStudent.EduGroup.Course));
            modelStudent.Add(ConvertStudentInfo("Группа", deserializedJsonInfoStudent.GroupName));
            modelStudent.Add(ConvertStudentInfo("Академический статус", deserializedJsonInfoStudent.AcademicState));
            Resources.Add("addInfo", modelStudent);
            InitializeComponent();
        }