示例#1
0
 private void 警示燈設定()
 {
     if (InvokeRequired)
     {
         BeginInvoke((Action)警示燈設定);
     }
     else
     {
         picturebGREEN.Image  = FA1811AHS.Properties.Resources.GREEN_S;
         picturebYELLOW.Image = FA1811AHS.Properties.Resources.YELLOW_S;
         picturebRED.Image    = FA1811AHS.Properties.Resources.RED_S;
         if (GREEN.Equals("picturebGREEN"))
         {
             picturebGREEN.Image = FA1811AHS.Properties.Resources.GREEN亮;
         }
         if (YELLOW.Equals("picturebYELLOW"))
         {
             picturebYELLOW.Image = FA1811AHS.Properties.Resources.YELLOW亮;
         }
         if (RED.Equals("picturebRED"))
         {
             picturebRED.Image = FA1811AHS.Properties.Resources.RED亮;
         }
     }
 }