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