Esempio n. 1
0
 public StudentDetailPage(Models.Student student)
 {
     InitializeComponent();
     _viewModel         = new ViewModels.StudentDetailViewModel();
     _viewModel.Student = student;
     BindingContext     = _viewModel;
 }
Esempio n. 2
0
        public static StudentDetailViewModel GetViewData(int studentId)
        {
            StudentDetailViewModel _retVal = new ViewModels.StudentDetailViewModel();
            Student _student = Student.GetById(studentId);

            _retVal.StudentId      = studentId;
            _retVal.CurrentStudent = _student;
            return(_retVal);
        }