public PlanItemsPage(HabitPlans plan, String coachID, Models.APIModels.Student selectedStudent) { InitializeComponent(); ToAddItems = new ObservableCollection <PlanItems>(); ToAddPlan = plan; this.coachID = coachID; this.selectedStudent = selectedStudent; }
public PlanCreatePage(Models.APIModels.Student aStudent) { InitializeComponent(); pickerContents = new ObservableCollection <string>(); selectedStudent = aStudent; pickerContents.Add(ResxFile.pker_Normal); pickerContents.Add(ResxFile.pker_Challenge); TypePicker.ItemsSource = pickerContents; TypePicker.SelectedIndex = 0; }
public StudentDetailPage(Models.APIModels.Student student) { InitializeComponent(); aStudent = student; User user = student.User; NameLabel.Text = user.UserName; if (user.Gender.Equals("M")) { genderLabel.Text = ResxFile.lbl_gender_male; } else { genderLabel.Text = ResxFile.lbl_female; } heightLabel.Text = user.Height.ToString(); weightLabel.Text = user.Weight.ToString(); }