示例#1
0
 /// <summary>
 /// This method fires when the function has been changed.
 /// </summary>
 /// <param name="e"> The <see cref="PolyFunctionVMEventArgs"/>. </param>
 protected virtual void FireOnPolyFunctionChanged(PolyFunctionVMEventArgs e)
 {
     if (this.OnPolyFunctionChanged != null)
     {
         this.OnPolyFunctionChanged(this, e);
     }
 }
示例#2
0
 /// <summary>
 /// This method gets new points for the view of the current <see cref="PolyFunctionVM"/>.
 /// </summary>
 /// <param name="sender"> The object sender. </param>
 /// <param name="e"> The <see cref="PolyFunctionVMEventArgs"/>. </param>
 public void DrawNewPolyLineForPolyFunction(object sender, PolyFunctionVMEventArgs e)
 {
     this.PolyFunctions.Remove(e.PolyFunctionVM);
     e.PolyFunctionVM.GetPolyline(this.SmallestXValueGrid, this.BigestXValueGrid, this.SmallestYValueGrid, this.BigestYValueGrid);
     this.PolyFunctions.Add(e.PolyFunctionVM);
     this.CalculateBiggestYANDSmallestY();
 }