Exemplo n.º 1
0
 public static DialogResult ShowDialog(IWin32Window owner, Control control, string caption, bool canResize, bool useDefaultButtons)
 {
     if (useDefaultButtons)
     {
         return(ShowDialog(MainForm, control, caption, MessageBoxButtons.OK, 0, canResize, true));
     }
     return(ControlBox.Show(MainForm, control, caption, canResize));
 }
Exemplo n.º 2
0
 public override void AddedToDocument(Grasshopper.Kernel.GH_Document document)
 {
     base.AddedToDocument(document);
     myControlBox.Show();
     myControlBox.setFunctionToCompute(() => { computeF(); });
     myControlBox.setFunctionToCompute2(() => { computeG(); });
     myControlBox.setFunctionForRadio1(() =>
     {
         if (ready)
         {
             hodgeStar(listLeaf, listBranch, listNode, myControlBox.coeff, myControlBox.sScale);
             ready = true;
             this.ExpirePreview(true);
         }
     });
     myControlBox.setFunctionToReflect(() => {
         zScale = Rhino.Geometry.Transform.Scale(Plane.WorldXY, 1, 1, myControlBox.zScale);
         hodgeStar(listLeaf, listBranch, listNode, myControlBox.coeff, myControlBox.sScale);
         this.ExpirePreview(true);
     });
 }
Exemplo n.º 3
0
 public void ShowControls()
 {
     //hide.Stop ();
     //hide.Start ();
     ControlBox.Show();
 }
Exemplo n.º 4
0
 public static DialogResult ShowDialog(IWin32Window owner, Control control, string caption, MessageBoxButtons buttons, int defaultButton, bool canResize, bool needButtons)
 {
     return(ControlBox.Show(owner, control, caption, buttons, defaultButton, canResize, needButtons));
 }