示例#1
0
 internal bool AddMonitoringEvent(MonitorKind monitor)
 {
     if (!MonitoredEvents.Contains(monitor))
     {
         MonitoredEvents.Add(monitor);
         return true;
     }
     return false;
 }
示例#2
0
 internal bool AddMonitoringEvent(MonitorKind monitor)
 {
     if (!MonitoredEvents.Contains(monitor))
     {
         MonitoredEvents.Add(monitor);
         return(true);
     }
     return(false);
 }
示例#3
0
        private void AddMonitoringEvent(MonitorKind monitorKind)
        {
            if (!ValidaHostSelecionado())
                return;

            if (SelectedHost.AddMonitoringEvent(monitorKind))
            {
                // Insere na lista de hosts monitorados
                lstMonitorados.Items.Add(string.Format("{0}: {1}", monitorKind, SelectedHost));
            }

            // Habilita timer
            if (!tmrMonitor.Enabled)
            {
                tmrMonitor.Enabled = true;

                // Força a primeira execução
                //tmrMonitor_Tick(null, null);
            }
        }
示例#4
0
        private void AddMonitoringEvent(MonitorKind monitorKind)
        {
            if (!ValidaHostSelecionado())
            {
                return;
            }

            if (SelectedHost.AddMonitoringEvent(monitorKind))
            {
                // Insere na lista de hosts monitorados
                lstMonitorados.Items.Add(string.Format("{0}: {1}", monitorKind, SelectedHost));
            }

            // Habilita timer
            if (!tmrMonitor.Enabled)
            {
                tmrMonitor.Enabled = true;

                // Força a primeira execução
                //tmrMonitor_Tick(null, null);
            }
        }
示例#5
0
 public MonitorEvent(SNMPHost h, MonitorKind t)
 {
     Host = h;
     Tipo = t;
     Timestamp = DateTime.Now;
 }
示例#6
0
 public MonitorEvent(SNMPHost h, MonitorKind t)
 {
     Host      = h;
     Tipo      = t;
     Timestamp = DateTime.Now;
 }