Ejemplo n.º 1
0
 /// <summary>
 /// This method fires when the x or y value have been changed.
 /// </summary>
 /// <param name="e"> The <see cref="IntValueEventArgs"/>. </param>
 protected virtual void FireOnXYValueChanged(IntValueEventArgs e)
 {
     if (this.OnXYValueChanged != null)
     {
         this.OnXYValueChanged(this, e);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Fires the <see cref="OnYMaxChanged"/> event.
 /// </summary>
 /// <param name="e"> The current value. </param>
 protected virtual void ChangeYMaxValue(IntValueEventArgs e)
 {
     if (this.OnYMaxChanged != null)
     {
         this.OnYMaxChanged(this, e);
     }
 }
Ejemplo n.º 3
0
        /// <summary>
        /// This method changes the current values of the x-y axis.
        /// </summary>
        /// <param name="sender"> The object sender. </param>
        /// <param name="e"> The <see cref="IntValueEventArgs"/>. </param>
        public void ChangeXYValueGrid(object sender, IntValueEventArgs e)
        {
            switch (e.XYAxisEnum)
            {
            case XYAxisEnum.SmallestXValue:
                this.SmallestXValueGrid = e.Value;
                break;

            case XYAxisEnum.BigestXValue:
                this.BigestXValueGrid = e.Value;
                break;

            case XYAxisEnum.SmallestYValue:
                this.SmallestYValueGrid = e.Value;
                break;

            case XYAxisEnum.BigestYValue:
                this.BigestYValueGrid = e.Value;
                break;

            default:
                break;
            }
        }
Ejemplo n.º 4
0
 /// <summary>
 /// This method changes the biggest y value.
 /// </summary>
 /// <param name="sender"> The object sender. </param>
 /// <param name="e"> The <see cref="IntValueEventArgs"/>. </param>
 public void ChangeYMaxValue(object sender, IntValueEventArgs e)
 {
     this.BigestYValue = e.Value;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// This method changes the smallest y value.
 /// </summary>
 /// <param name="sender"> The object sender. </param>
 /// <param name="e"> The <see cref="IntValueEventArgs"/>. </param>
 public void ChangeYMinValue(object sender, IntValueEventArgs e)
 {
     this.SmallestYValue = e.Value;
 }