void ReleaseDesignerOutlets() { if (CountLabel != null) { CountLabel.Dispose(); CountLabel = null; } if (Hazne2 != null) { Hazne2.Dispose(); Hazne2 = null; } if (SliderControll != null) { SliderControll.Dispose(); SliderControll = null; } if (SoruLabel != null) { SoruLabel.Dispose(); SoruLabel = null; } }
void CevapYansit() { var durum = userAnswer.FindAll(item => item.questionId == GelenSoru.id); if (durum.Count > 0) { SliderControll.SetValue((int)(Convert.ToInt32(durum[durum.Count - 1].option) / 2.5f), false); CountLabel.Text = durum[durum.Count - 1].option; } }
public override void ViewWillAppear(bool animated) { base.ViewWillAppear(animated); if (!Actinmi) { this.View.BackgroundColor = UIColor.Clear; Hazne2.BackgroundColor = UIColor.Clear; SoruLabel.TextColor = UIColor.White; SliderControll.SetThumbImage(UIImage.FromBundle("Images/sliderthumpimg.png"), UIControlState.Normal & UIControlState.Highlighted); SliderControll.Highlighted = false; SliderControll.MaxValue = 255; SliderControll.MinValue = 0; CountLabel.Text = "0"; Actinmi = true; CevapYansit(); } }