Exemple #1
0
        //---------------------------------------------------------------------
        private void groupsComboBox_DropDown(object sender, EventArgs e)
        {
            if (m_groups == null)
            {
                m_groups = m_managementGroup.GetRootMonitoringObjectGroups();

                groupsComboBox.Items.Clear();

                foreach (MonitoringObjectGroup group in m_groups)
                {
                    groupsComboBox.Items.Add(group);
                }
            }

            if (m_currentMonitoringObject != null && m_isContextCurrentlyGroup == true)
            {
                groupsComboBox.SelectedItem = m_currentMonitoringObject;
            }
        }