private void OnClosed(object sender, EventArgs e)
        {
            try
            {
                _serverChannel.Logoff(this._userId);
            }
            catch (Exception)
            { }

            _serverProxy.Close();
            base.OnClosed(e);
            Process.GetCurrentProcess().Kill();
        }
 public void Dispose()
 {
     _serverProxy.Close();
 }