//---------------------------------------------------------------------
        private void CacheWindowsComputerObjects()
        {
            MonitoringClass windowsComputerClass;

            windowsComputerClass = m_managementGroup.GetMonitoringClass(SystemMonitoringClass.WindowsComputer);

            m_windowsComputers = m_managementGroup.GetPartialMonitoringObjects(windowsComputerClass);
        }
示例#2
0
        //---------------------------------------------------------------------
        private void instancesComboBox_DropDown(object sender, EventArgs e)
        {
            if (m_monitoringObjects == null)
            {
                MonitoringClass monitoringClass = m_managementGroup.GetMonitoringClass(m_managementPackClass.Id);

                m_monitoringObjects = m_managementGroup.GetPartialMonitoringObjects(monitoringClass);

                instancesComboBox.Items.Clear();

                foreach (PartialMonitoringObject monitoringObject in m_monitoringObjects)
                {
                    instancesComboBox.Items.Add(monitoringObject);
                }

                if (m_currentMonitoringObject != null && m_isContextCurrentlyGroup == false)
                {
                    instancesComboBox.SelectedItem = m_currentMonitoringObject;
                }
            }
        }