Example #1
0
        private void closeConnection()
        {
            _dbInterface.UnmarkAsDefault(_account);
            if (_client != null)
            {
                _client.CloseChannel();
                _client = null;
            }

            if (this.InvokeRequired)
            {
                this.Invoke((MethodInvoker) delegate { this.LoadingForm_Load(this, null); });
            }
            else
            {
                LoadingForm_Load(this, null);
            }
        }