public ProfileStep GetLast() { if (this._last == null) this._last = new ProfileStep(Math.PI, this.Profile.Last().Radius); return this._last; }
public ProfileStep GetFirst () { ProfileStep last = new ProfileStep (this.Profile.Last ()); while (last.Angle > -Math.PI) { last.Angle = last.Angle - 2 * Math.PI; } return last; }
void Init() { lnStep1 = this.FindViewById <LinearLayout>(Resource.Id.lnStep1); lnStep2 = this.FindViewById <LinearLayout>(Resource.Id.lnStep2); step1 = this.FindViewById <ProfileStep>(Resource.Id.profile_step1); step2 = this.FindViewById <ProfileStep>(Resource.Id.profile_step2); scroll = this.FindViewById <ScrollView>(Resource.Id.scroll); step1.SetImageResource(Resource.Drawable.ic_progress_bar_filled); lnStep1.Visibility = ViewStates.Visible; lnStep2.Visibility = ViewStates.Gone; }
internal ProfileStep (ProfileStep s) { this.Angle = s.Angle; this.Radius = s.Radius; }
public void AddProfileStep (ProfileStep step) { this.profile.Add (step); }
public ProfileStep GetFirst() { if (this._first == null) this._first = new ProfileStep(-Math.PI, this.GetLast().Radius); return this._first; }
/// <summary> /// Adds the profile step. /// </summary> /// <param name="step">Step.</param> public void AddProfileStep(ProfileStep step) { this._ordered = null; this._last = null; this._profile.Add(step); }
/// <summary> /// Resets the profile. /// </summary> public void ResetProfile() { this._ordered = null; this._last = null; this._profile = new List<ProfileStep>(); }