コード例 #1
0
 public void addInput(System.Windows.Forms.Panel form)
 {
     if (limit == "0 or 1")
     {
         control = new BoolControl();
     }
     else if (limit.Contains("|"))
     {
         control = new SelectControl();
     }
     else if (IntControl.intRx.Match(limit).Success)
     {
         control = new IntControl();
     }
     else if (Float3Control.f3Rx.Match(value).Success)
     {
         control = new Float3Control();
     }
     else
     {
         control = new TextControl();
     }
     control.init(form, this);
     control.createInput();
 }
コード例 #2
0
ファイル: sweetConfig.cs プロジェクト: xeno123/sweetfxui-1
 public void addInput(System.Windows.Forms.Panel form)
 {
     if (limit == "0 or 1")
     {
         control = new BoolControl();
     }
     else if (limit.Contains("|")) {
         control = new SelectControl();
     }
     else if (IntControl.intRx.Match(limit).Success)
     {
         control = new IntControl();
     } else if (Float3Control.f3Rx.Match(value).Success) {
         control = new Float3Control();
     } else
     {
         control = new TextControl();
     }
     control.init(form, this);
     control.createInput();
 }