Exemple #1
0
 /*public Mothra.UI.newButton addButton(string name,Action func)
  * {
  *  Mothra.UI.newButton b=new Mothra.UI.newButton(func);
  *  this.stackPanel1.Children.Add(b);
  *  b.Text = name;
  *  return b;
  * }*/
 public Mothra.UI.rangeSetter addRangeSetter(string key, Action <Mothra.UI.rangeSetter, int, double, double> func)
 {
     Mothra.UI.rangeSetter s = new rangeSetter(key);
     s.setFunc(func);
     listAdjusters.Add(s);
     this.stackPanel3.Children.Add(s);
     return(s);
 }
 /*public Mothra.UI.newButton addButton(string name,Action func)
 {
     Mothra.UI.newButton b=new Mothra.UI.newButton(func);
     this.stackPanel1.Children.Add(b);
     b.Text = name;
     return b;
 }*/
 public Mothra.UI.rangeSetter addRangeSetter(string key, Action<Mothra.UI.rangeSetter, int, double, double> func)
 {
     Mothra.UI.rangeSetter s = new rangeSetter(key);
     s.setFunc(func);
     listAdjusters.Add(s);
     this.stackPanel3.Children.Add(s);
     return s;
 }