/// <summary> /// Hides alarm icon and message from bed userControl /// </summary> /// <param name="monitor"></param> public void HideAlarms(MonitorForm monitor) { // remove picture and text from monitorUserControl based on monitor.Id foreach (UserControl_bed userControl_Bed in beds) { if (monitor.MonitorId == int.Parse(userControl_Bed.hiddenLabel_MonitorID.Text)) { userControl_Bed.MuteAlarm(); } } }
private void userControl_bed8_Click(object sender, EventArgs e) { if (monitorForm8 == null) { //Initialise monitor monitorForm8 = new MonitorForm(); monitorForm8.MonitorId = int.Parse(userControl_bed8.MonitorID); monitorForms.Add(monitorForm8); } DisplayMonitorForm(monitorForm8.MonitorId); if (monitorForm8.Active && !monitorForm8.HasAlarms) { userControl_bed8.MarkBedAsActive(); } }
public ModulesForm(MonitorForm monitorForm) { InitializeComponent(); MonitorForm = monitorForm; }
public LimitsForm(MonitorForm monitorForm) { InitializeComponent(); MonitorForm = monitorForm; }