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