public HMIMotor() { TextRectangle = new Rectangle(); m_LightColor = LightColorOption.Green; m_Rotation = RotateFlipType.RotateNoneFlipNone; m_OutputType = OutputType.MomentarySet; tmrError = new Timer(); SourceImageRatio = new decimal((double)Properties.Resources.MotorGray.Height / (double)Properties.Resources.MotorGray.Width); TextBrush = new SolidBrush(base.ForeColor); TextFormat = new StringFormat() { Alignment = StringAlignment.Center, LineAlignment = StringAlignment.Far }; }
public HMIPilotLight() { this.TextRectangle = new Rectangle(); this.sf = new StringFormat(); this.m_LightColor = LightColorOption.Green; this.m_LightColorOff = LightColorOption.White; this.m_LegendPlate = LegendPlates.Large; this.m_OutputType = OutputType.MomentarySet; this.tmrError = new System.Windows.Forms.Timer(); this.LegendPlateRatio = (double)Properties.Resources.LegendPlate.Height / (double)Properties.Resources.LegendPlate.Width; this.sf = new StringFormat() { Alignment = StringAlignment.Center, LineAlignment = StringAlignment.Center }; this.TextBrush = new SolidBrush(Color.Black); }