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