예제 #1
0
        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);
        }
예제 #2
0
        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);
                }
            }
        }