public void Update_GUI(object sender, EventArgs e) { if (Tag.GetIonAutoMode()) { Ion_Status_Automat_on.Fill = on; } else { Ion_Status_Automat_on.Fill = off; if (Tag.GetIonPowerOn()) { Ion_Status_Power_On.Fill = on; } else { Ion_Status_Power_On.Fill = off; } if (Tag.GetIonTurnOn()) { Ion_Status_Turn_On.Fill = on; } else { Ion_Status_Turn_On.Fill = off; } if (Tag.GetIonFailure()) { Ion_Status_Failure.Fill = off; } else { Ion_Status_Failure.Fill = null; } FB_RRG_1.Text = Tag.get_FB_RRG_1().ToString(); FB_RRG_2.Text = Tag.get_FB_RRG_2().ToString(); FB_RRG_3.Text = Tag.get_FB_RRG_3().ToString(); } }