/// <summary> /// Clone this instance /// </summary> public override DrawObject Clone() { DrawVariable drawfunction = new DrawVariable(Parentpagelist); //drawfunction._rectangle = _rectangle; //FillDrawObjectFields(drawfunction); return(drawfunction); }
public override void OnMouseDown(DrawArea drawArea, MouseEventArgs e) { Point p; if (drawArea.SnapEnable) { p = drawArea.BackTrackMouse(new Point(drawArea.FittoSnap(e.X, drawArea.SnapX), drawArea.FittoSnap(e.Y, drawArea.SnapY))); } else { p = drawArea.BackTrackMouse(new Point(e.X, e.Y)); } VariableForm varlistfrm = new VariableForm(((TabFBDPageControl)drawArea.ParentTabGraphicPageControl).ID); if (DialogResult.OK == varlistfrm.ShowDialog()) { DrawVariable obj; AddNewObject(drawArea, (obj = new DrawVariable(drawArea.Pages, p.X, p.Y, varlistfrm.tblvariable, varlistfrm.tblformalparameter, varlistfrm.SubPropertyTxt /*, varlistfrm.IsExtendedProperty, varlistfrm.IsObject*/))); drawArea.Capture = false; } }