Beispiel #1
0
        private static FormServerMonitorClient CreateServerMonitorClient()
        {
            ServerMonitorClient     serverMonitorClient     = new ServerMonitorClient();
            FormServerMonitorClient formServerMonitorClient = new FormServerMonitorClient(serverMonitorClient);

            if (serverMonitorClient.Init(formServerMonitorClient) == false)
            {
                return(null);
            }

            return(formServerMonitorClient);
        }
Beispiel #2
0
        public FormServerMonitorClient(ServerMonitorClient refModel)
        {
            m_refModel = refModel;
            InitializeComponent();

            m_controllerTreeView = new TreeViewController(tviewServerList);
            m_monitoringLogger   = new MonitoringLogger(listboxMonitoringLog);

            m_trayIconUpdater = new TrayIconUpdater(notifyIconServerMonitorClient, refModel.refMachineInfoMgr);
            m_trayIconUpdater.RegIcon(TRAY_ICON_TYPE.FINE, notifyIconFine);
            m_trayIconUpdater.RegIcon(TRAY_ICON_TYPE.BAD, notifyIconBad);
            m_trayIconUpdater.RegIcon(TRAY_ICON_TYPE.CHANGING, notifyIconChanging);
        }
Beispiel #3
0
 public CommandHandler_Normal(ServerMonitorClient refServerMonitorClient, CommandSender refCommandSender)
 {
     m_refServerMonitorClient = refServerMonitorClient;
     m_refCommandSender       = refCommandSender;
 }