Esempio n. 1
0
 public HMIMushroomButton()
 {
     this.TextRectangle = new Rectangle();
     this.m_ButtonColor = ButtonColors.RedMushroom;
     this.m_LegendPlate = LegendPlates.Large;
     this.m_OutputType  = OutputTypes.MomentarySet;
     this.sf            = new StringFormat();
     this.TextBrush     = new SolidBrush(Color.Black);
 }
Esempio n. 2
0
 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);
 }
 public HMISelectorSwitch()
 {
     this.m_LegendPlate    = LegendPlates.Large;
     this.m_OutputType     = OutputType.MomentarySet;
     this.LegendPlateRatio = new decimal((double)Properties.Resources.LegendPlate.Height / (double)Properties.Resources.LegendPlate.Width);
 }