Exemplo n.º 1
0
        private static FormServerMonitorClient CreateServerMonitorClient()
        {
            ServerMonitorClient     serverMonitorClient     = new ServerMonitorClient();
            FormServerMonitorClient formServerMonitorClient = new FormServerMonitorClient(serverMonitorClient);

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

            return(formServerMonitorClient);
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public CommandHandler_Normal(ServerMonitorClient refServerMonitorClient, CommandSender refCommandSender)
 {
     m_refServerMonitorClient = refServerMonitorClient;
     m_refCommandSender       = refCommandSender;
 }