Ejemplo n.º 1
0
        public AlertGroup(AlertCheckBox theCheckBox, DecentGroupBox theGroupBox,
                          AlertNumericUpDown triggerLevelUpDown, AlertNumericUpDown triggerThresholdUpDown,
                          AlertNumericUpDown alertIntervalUpDown, IEnumerable <Label> theLabels)
        {
            Debug.Assert(theCheckBox != null && theGroupBox != null &&
                         triggerLevelUpDown != null && triggerThresholdUpDown != null &&
                         alertIntervalUpDown != null && theLabels != null);

            m_checkBox            = theCheckBox;
            m_groupBox            = theGroupBox;
            m_upDownTriggerLevel  = triggerLevelUpDown;
            m_upDownTriggerPeriod = triggerThresholdUpDown;
            m_upDownAlertInterval = alertIntervalUpDown;
            m_labels = theLabels;
            m_checkBox.CheckedChanged += m_theCheckBox_CheckedChanged;

            StoreOriginalSetting();
        }
Ejemplo n.º 2
0
        public AlertGroup(AlertCheckBox theCheckBox, DecentGroupBox theGroupBox,
            AlertNumericUpDown triggerLevelUpDown, AlertNumericUpDown triggerThresholdUpDown,
            AlertNumericUpDown alertIntervalUpDown, IEnumerable<Label> theLabels)
        {
            Debug.Assert(theCheckBox != null && theGroupBox != null
                         && triggerLevelUpDown != null && triggerThresholdUpDown != null
                         && alertIntervalUpDown != null && theLabels != null);

            m_checkBox = theCheckBox;
            m_groupBox = theGroupBox;
            m_upDownTriggerLevel = triggerLevelUpDown;
            m_upDownTriggerPeriod = triggerThresholdUpDown;
            m_upDownAlertInterval = alertIntervalUpDown;
            m_labels = theLabels;
            m_checkBox.CheckedChanged += m_theCheckBox_CheckedChanged;

            StoreOriginalSetting();
        }