コード例 #1
0
        private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            timerRefreshRooms.Enabled = false;
            timerAutoRelogin.Enabled  = false;

            if (m_Client != null && m_Client.GetState() > 0)
            {
                m_UserName  = "";
                m_UserToken = "";
                m_Client.Close();
            }
        }