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)); }
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); }); }
public void ShowControls() { //hide.Stop (); //hide.Start (); ControlBox.Show(); }
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)); }