private void LoginWithHash() { try { string session_id = SmugMugProxy.LoginWithHash(this.credentials.UserID, this.credentials.PasswordHash); if (session_id != null && session_id.Length > 0) { this.credentials.SessionID = session_id; } else { throw new SmugMugException("SessionID was empty"); } } catch (Exception ex) { throw new SmugMugException("A login error occured, SessionID may be invalid.", ex.InnerException); } }