public void Handle_ValueChanged( object o, SegmentedControl.FormsPlugin.Abstractions.ValueChangedEventArgs e) { view_frames.Children.Clear(); switch (e.NewValue) { case 0: if (Variables.submissionInfo.lastattempt.submission.status == "new") { view_frames.Children.Add(Structure_Frame.Value_comments_on_the_answer_frame( Variables.sumbissionComments.comments)); view_frames.Children.Add(Structure_Frame.Can_Edit_Status_Frame( Variables.submissionInfo.lastattempt.caneditowner)); } else { view_frames.Children.Add(Structure_Frame.Answer_Frame( Variables.submissionInfo.lastattempt.submission.plugins)); view_frames.Children.Add(Structure_Frame.Value_comments_on_the_answer_frame( Variables.sumbissionComments.comments)); view_frames.Children.Add(Structure_Frame.Last_Change_Frame( Variables.submissionInfo.lastattempt.submission.timemodified)); view_frames.Children.Add(Structure_Frame.Can_Edit_Status_Frame( Variables.submissionInfo.lastattempt.caneditowner)); } break; case 1: if (Variables.submissionInfo.lastattempt.gradingstatus == "graded") { view_frames.Children.Add(Structure_Frame.Rate_Participant_Submission_Frame( Variables.true_assign.grade, Variables.submissionInfo.feedback.grade.grade)); } else { var frame = Structure_Frame.Rate_Participant_Submission_Frame( Variables.true_assign.grade, ""); view_frames.Children.Add(frame); } view_frames.Children.Add(Structure_Frame.Edit_Comment_On_Grade_Frame()); if (Variables.submissionInfo.feedback != null) { var frame = Structure_Frame.Grader_Frame( Variables.grader_inf, Variables.submissionInfo.feedback.grade.timemodified); view_frames.Children.Add(frame); } break; } }
public void Handle_ValueChanged( object o, SegmentedControl.FormsPlugin.Abstractions.ValueChangedEventArgs e) { view_frames.Children.Clear(); switch (e.NewValue) { case 0: Function.Check_Submission_Status_View(view_frames, Variables.submissionInfo.lastattempt); break; case 1: if (Variables.submissionInfo.lastattempt.gradingstatus == "graded") { view_frames.Children.Add(Structure_Frame.Grade_In_Journal_Frame( Variables.submissionInfo.feedback.gradefordisplay)); } view_frames.Children.Add(Structure_Frame.Comment_Grader_On_The_Answer_Frame( Variables.submissionInfo.feedback.plugins)); view_frames.Children.Add(Structure_Frame.Grader_Frame( Variables.grader_inf, Variables.submissionInfo.feedback.grade.timemodified)); break; } }
public void Handle_ValueChanged(object sender, SegmentedControl.FormsPlugin.Abstractions.ValueChangedEventArgs e) { switch (e.NewValue) { case 0: //SegContent.Children.Clear(); CampsListView.IsVisible = true; CampsMapView.IsVisible = false; break; case 1: //SegContent.Children.Clear(); CampsListView.IsVisible = false; CampsMapView.IsVisible = true; AddCampsToMap(); break; } }
void Handle_ValueChanged(object sender, SegmentedControl.FormsPlugin.Abstractions.ValueChangedEventArgs e) { switch (e.NewValue) { case 0: SegContent.Children.Clear(); SegContent.Children.Add(new Label() { Text = "Items tab selected" }); break; case 1: SegContent.Children.Clear(); SegContent.Children.Add(new Label() { Text = "Notes tab selected" }); break; case 2: SegContent.Children.Clear(); SegContent.Children.Add(new Label() { Text = "Approvers tab selected" }); break; case 3: SegContent.Children.Clear(); SegContent.Children.Add(new Label() { Text = "Attachments tab selected" }); break; } }
public void FrameShadowType_Changed(object sender, SegmentedControl.FormsPlugin.Abstractions.ValueChangedEventArgs e) { SetFrame(e.NewValue); }