private async void SetServerCalendarColorAsync ()
{
try
{
if (EventCategoryColor != OlCategoryColor.olCategoryColorNone)
{
if (await _currentOptions.CreateCalDavDataAccess ().SetCalendarColorNoThrow (ColorHelper.CategoryColors[EventCategoryColor]))
{
System.Windows.MessageBox.Show ("Successfully updated the server calendar color!");
}
else
{
System.Windows.MessageBox.Show ("Error updating the server calendar color!");
}
}
else
{
System.Windows.MessageBox.Show ("No color set for updating the server calendar color!");
}
}
catch (System.Exception x)
{
ExceptionHandler.Instance.DisplayException (x, s_logger);
}
}
}