/// <summary>
 /// Ctor
 /// </summary>
 /// <param name="x0"></param>
 /// <param name="y0"></param>
 /// <param name="h"></param>
 /// <param name="f"></param>
 public SpezzateEulero(
     double x0, double y0
     , double h
     , FPointer f
     )
 {
     this.x0       = x0;
     this.y0       = y0;
     this.h        = h;
     this.fPointer = f;
 }// end Ctor.
Beispiel #2
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="x0"></param>
 /// <param name="y0"></param>
 /// <param name="h"></param>
 /// <param name="f"></param>
 public Runge_Kutta_4_(
     double x0, double y0
     , double h
     , FPointer f
     )
 {
     this.x0       = x0;
     this.y0       = y0;
     this.h        = h;
     this.fPointer = f;
 }// end Ctor.
Beispiel #3
0
 public int RemoveItem(FPointer ptr)
 {
     foreach (var i in this)
     {
         if (i.GetType() == typeof(MenuItem) &&
             ((MenuItem)i).Callback == ptr)
         {
             Remove(i);
             return(1);
         }
     }
     return(0);
 }
Beispiel #4
0
 public void Add(string description, FPointer callback)
 {
     Add(new MenuItem(description, callback));
 }
Beispiel #5
0
 public MenuItem(String description, FPointer callback, Menu menu = null) : base(description)
 {
     mCallback = callback;
     mMenu     = menu;
 }