Пример #1
0
 public void drawLED(LED objLED, Image imgLED)
 {
     using (Graphics g = pnlForm.CreateGraphics()) {
         int id = objLED.ID;
         if(id != 1 && id != 2 && id != 9 && id != 17)
             g.DrawImage(imgLED,
                 (float)(objLED.PosX+objLED.SpcX),
                 (float)(objLED.PosY+objLED.SpcY),
                 objLED.Width,
                 objLED.Height);
     }
 }
Пример #2
0
 public void drawLED(LED objLED, Image imgLED)
 {
     using (Graphics g = pnlForm.CreateGraphics()) {
         int id = objLED.ID;
         if (id != 1 && id != 2 && id != 9 && id != 17)
         {
             g.DrawImage(imgLED,
                         (float)(objLED.PosX + objLED.SpcX),
                         (float)(objLED.PosY + objLED.SpcY),
                         objLED.Width,
                         objLED.Height);
         }
     }
 }