public override object Clone() { DrawingVariable clone = (DrawingVariable)base.Clone(); clone.LabelVisible = _labelVisible; if (root != null) { MathNodeRoot r = (MathNodeRoot)root.Clone(); clone.SetDrawingAttributes(r); } return(clone); }
void var_OnMouseSelect(object sender, EventArgs e) { DrawingVariable dv = sender as DrawingVariable; if (dv != null) { IMathDesigner dr = this.Parent as IMathDesigner; if (dr != null) { dr.ShowProperties(dv.Variable); } } }