Exemple #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();
        }
Exemple #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();
            }
        }
Exemple #3
0
 private void ServerStatusMonitor_FormClosing(object sender, FormClosingEventArgs e)
 {
     e.Cancel = true;
     ServerStatusMonitor.HideWindow();
 }