Example #1
0
 public void GetDeviceVar(string StaName)
 {
     FExpression             = new CExpression();
     FExpression.ExpressType = LCExpressType.Expression;
     FExpression.Exipression = szExpress;
     FExpression.GetDeviceVar(StaName);
 }
Example #2
0
        public CExpression Clone()
        {
            CExpression obj = (CExpression)this.MemberwiseClone();

            if (cVar != null)
            {
                obj.cVar = cVar.Clone();
            }
            obj.ListParam.Clear();
            return(obj);
        }
Example #3
0
        //public virtual void DoFlash() { }

        //String CText.GetToolTip() { }
        //public virtual void UpDate() { }
        //public virtual CBase Clone() { }
        //public virtual CBase CopyTo(CBase DesObject) { }
        public CText() : base()
        {
            m_ElementType = LCElementType.TEXT;
            m_Background  = false;
            DrawFont      = new Font("宋体", 16, GraphicsUnit.World);
            Text          = "文本";
            FontBrush     = new SolidBrush(System.Drawing.Color.DeepSkyBlue);
            //FontBrush = SystemBrushes.ControlText;
            FExpression   = new CExpression();
            Updated       = false;
            TextFormat    = new StringFormat(StringFormat.GenericDefault);
            HorizonAlign  = StringAlignment.Near;
            VerticalAlign = StringAlignment.Center;
            AutoFit       = true;
            ValueFormat   = "General";
        }