public void Logout() { if (!connected) { return; } if (this.credentials.SessionID == null && this.credentials.SessionID.Length == 0) { return; } SmugMugProxy.Logout(this.credentials.SessionID); connected = false; this.credentials = new Credentials(null, 0, null); }