FrmAlertScreen frm = new FrmAlertScreen(); if (Convert.ToBoolean(alarm))//Set alarm to ring. { status = "Ringing"; RingAlarm = true; if (IsLocaly == false)//Alarm is not sent by local system then don't show alert screen. { frm.Show (); } IsLocaly = false; } else //Alram goes silent. { status = "Silent"; RingAlarm = false; frm.Hide() ; IsLocaly = false; }
frm.show()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)