示例#1
0
        public static JWCControl CreateInstance(string fullname)
        {
            JWCControl rt = null;
            Type       tp;

            if (AllControls.TryGetValue(fullname, out tp))
            {
                rt = (JWCControl)System.Activator.CreateInstance(tp);
            }
            return(rt);
        }
示例#2
0
        protected object[] GSR_Margin(bool isset, object[] val)
        {
            JWCControl me = this;

            if (isset)
            {
                double left   = (int)Convert.ToDouble(val[0]);
                double top    = (int)Convert.ToDouble(val[1]);
                double right  = (int)Convert.ToDouble(val[2]);
                double bottom = (int)Convert.ToDouble(val[3]);
                me.Margin = new Thickness(left, top, right, bottom);
                return(null);
            }
            else
            {
                return(new object[] { (int)me.Margin.Left, (int)me.Margin.Top, (int)me.Margin.Right, (int)me.Margin.Bottom });
            }
        }