private bool TryLogon(IntPtr hParentWnd, string parameters, string commonRoot, out string message, out IIssuesServiceConnection service) { IIssuesService connector = Connector; string serviceUri, user, password; message = null; service = null; if (!TryParseParameters(hParentWnd, parameters, commonRoot, out serviceUri, out user, out password)) { message = GetParamDesc(); return(false); } try { if (!connector.Connect(serviceUri, user, password, GetAppSetting, out service)) { SaveSettings(user, serviceUri, null); return(false); } return(true); } catch (Exception e) { Log.Error(e); message = e.Message; return(false); } }