public void CreateViewer(MathNodeRoot item) { MathExpViewer mv = holder.AddMathViewer(item, 50, 50); ReturnIcon ri = holder.CreateReturnIcon(item.DataType); LinkLineNode.JoinToEnd((LinkLineNode)mv.OutputPorts[0].NextNode, ri.InPort); }
/// <summary> /// for empty action /// </summary> public void CreateDefaultReturnIcon() { ReturnIcon ri = holder.CreateReturnIcon(new RaisDataType()); ri.Location = new Point(ri.Parent.ClientSize.Width / 2 - ri.Width / 2, ri.Parent.ClientSize.Height - ri.Height); ri.InPort.CheckCreatePreviousNode(); ri.Parent.Controls.Add((Control)ri.InPort.PrevNode); ri.InPort.CreateBackwardLine(); }
public ReturnIcon CreateReturnIcon(RaisDataType t) { root.ResultValueType = t; ReturnIcon ri = new ReturnIcon(t); root.Controls.Add(ri); root.Controls.Add(ri.InPort); return(ri); }
public override object Clone() { ReturnIcon obj = (ReturnIcon)base.Clone(); if (bmp != null) { obj.SetBmp((Bitmap)bmp.Clone()); } MathNodeRoot root = (MathNodeRoot)var.root.Clone(); obj.SetVar((MathNodeVariableDummy)root[0]); obj.TypeDefined = this.TypeDefined; return(obj); }