Ejemplo n.º 1
0
        public ProfileStep GetLast()
        {
            if (this._last == null)
                this._last = new ProfileStep(Math.PI, this.Profile.Last().Radius);

            return this._last;
        }
Ejemplo n.º 2
0
		public ProfileStep GetFirst ()
		{
			ProfileStep last = new ProfileStep (this.Profile.Last ());

			while (last.Angle > -Math.PI) {
				last.Angle = last.Angle - 2 * Math.PI;
			}

			return last;
		}
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 4
0
			internal ProfileStep (ProfileStep s)
			{
				this.Angle = s.Angle;
				this.Radius = s.Radius;
			}
Ejemplo n.º 5
0
		public void AddProfileStep (ProfileStep step)
		{
			this.profile.Add (step);
		}
Ejemplo n.º 6
0
        public ProfileStep GetFirst()
        {
            if (this._first == null)
                this._first = new ProfileStep(-Math.PI, this.GetLast().Radius);

            return this._first;
        }
Ejemplo n.º 7
0
 /// <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);
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Resets the profile.
 /// </summary>
 public void ResetProfile()
 {
     this._ordered = null;
     this._last = null;
     this._profile = new List<ProfileStep>();
 }