//method to show alarms upon a bed alarming out public void AlarmsShow() { if (RunningData.alarm == true) { //shows the alarming picture AlarmPic1.Show(); } else { //hides the alarm picture AlarmPic1.Hide(); } }
private void Login_Load(object sender, EventArgs e) { System.Windows.Forms.Control.CheckForIllegalCrossThreadCalls = false; //Hides the alarm pic until we want to show it AlarmPic1.Hide(); }