Ejemplo n.º 1
0
 public override ElementInfo GetElementInfo(int n)
 {
     if (n == 0)
     {
         var ei = new ElementInfo(ElementInfo.MakeLink("customfunction.html", "Output Function"), 0, -1, -1);
         ei.Text = mExprString;
         ei.DisallowSliders();
         return(ei);
     }
     if (n == 1)
     {
         return(new ElementInfo("入力数", mInputCount, 1, 8).SetDimensionless());
     }
     return(null);
 }
Ejemplo n.º 2
0
 public override ElementInfo GetElementInfo(int n)
 {
     if (n == 2)
     {
         var ei = new ElementInfo("Model Name", 0, -1, -1);
         ei.Text = modelName;
         ei.DisallowSliders();
         return(ei);
     }
     if (n == 3)
     {
         var ei = new ElementInfo("", 0, -1, -1);
         ei.Button = new Button()
         {
             Text = "Edit Model"
         };
         return(ei);
     }
     return(base.GetElementInfo(n));
 }