private void SetConcernCriteria(ConcernItem concern) { btnColorSelected.BackgroundColor = concern.Color; brushColourToUse = concern.Color.ToSKColor(); brushType = concern.Description; txtSubject.Text = concern.Description; }
public ConcernBodySelection(ConcernItem concernSelected) { InitializeComponent(); DrawData.Init(); SetConcernCriteria(concernSelected); pictureFront = DrawData.Front_SVG; pictureBack = DrawData.Back_SVG; }
private async void ConcernTypeSelected(object sender, EventArgs e) { List <Answer> concernSelection = sender is ImageButton ? (sender as ImageButton).CommandParameter as List <Answer> : (sender as Button).CommandParameter as List <Answer>; if (concernSelection != null && concernSelection.Count == 1) { string concernText = concernSelection[0].ResponseText; ConcernItem concernItem = ConcernHelper.GetConcernDetailsByText(concernText); await Navigation.PushAsync(new ConcernBodySelection(concernItem)); } }