Пример #1
0
 //============================================================
 // <T>接收对象内容</T>
 //
 // @param value 对象
 //============================================================
 public virtual void Assign(FRcObject value)
 {
     _name  = value._name;
     _label = value._label;
     _hint  = value._hint;
     _note  = value._note;
 }
Пример #2
0
        //============================================================
        // <T>计算全局坐标。</T>
        //
        // @param scale 缩放
        // @return 全局坐标
        //============================================================
        public virtual FIntPoint2 CalculatePosition()
        {
            FIntPoint2 point = new FIntPoint2();
            FRcObject  find  = this;

            while (find != null)
            {
                FRcControl control = find as FRcControl;
                if (control != null)
                {
                    point.Add(control.Location);
                }
                find = find.Parent;
            }
            return(point);
        }