Example #1
0
 /// <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();
         }
     }
 }
Example #2
0
        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();
            }
        }
Example #3
0
 public ModulesForm(MonitorForm monitorForm)
 {
     InitializeComponent();
     MonitorForm = monitorForm;
 }
Example #4
0
 public LimitsForm(MonitorForm monitorForm)
 {
     InitializeComponent();
     MonitorForm = monitorForm;
 }