private async void TestConnectionAsync ()
{
_testConnectionCommand.SetCanExecute (false);
try
{
CalenderUrl = await OptionTasks.TestWebDavConnection (_currentOptions, _settingsFaultFinder, CalenderUrl, EmailAddress);
}
catch (Exception x)
{
s_logger.Error ("Exception while testing the connection.", x);
string message = null;
for (Exception ex = x; ex != null; ex = ex.InnerException)
message += ex.Message + Environment.NewLine;
MessageBox.Show (message, OptionTasks.ConnectionTestCaption);
}
finally
{
_testConnectionCommand.SetCanExecute (true);
}
}