private void fwMainWindow_HandleDestroyed(object sender, EventArgs e) { if (m_activeMainWindow == sender) m_activeMainWindow = null; } #endregion