Exemplo n.º 1
0
        /// <summary>
        /// Initializes with the specified site service
        /// </summary>
        /// <param name="conn">The site service.</param>
        public static void Init(ISiteService conn)
        {
            _smConn = conn;

            if (_smMonitor != null)
                _smMonitor.Dispose();

            if (_smConn != null)
                _smMonitor = new ServerStatusMonitor();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes with the specified site service
        /// </summary>
        /// <param name="conn">The site service.</param>
        public static void Init(ISiteService conn)
        {
            _smConn = conn;

            if (_smMonitor != null)
            {
                _smMonitor.Dispose();
            }

            if (_smConn != null)
            {
                _smMonitor = new ServerStatusMonitor();
            }
        }
Exemplo n.º 3
0
 private void ServerStatusMonitor_FormClosing(object sender, FormClosingEventArgs e)
 {
     e.Cancel = true;
     ServerStatusMonitor.HideWindow();
 }