Skip to content

Commit

Permalink
Merge pull request #46 from Dashbrd/dev-current
Browse files Browse the repository at this point in the history
Merge build error fixes
  • Loading branch information
ankeshdave authored Mar 24, 2017
2 parents 4886867 + 1e964f9 commit e2f6a91
Showing 1 changed file with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1386,10 +1386,12 @@ public void CheckCalendarSpecificData(IDictionary<string, object> calendarSpecif
{
throw new ArgumentNullException("calendarSpecificData", "Calendar Specific Data cannot be null");
}

if (!(calendarSpecificData.TryGetValue("ProfileName", out object profileValue) &&
calendarSpecificData.TryGetValue("OutlookCalendar", out object outlookCalendarValue) &&
calendarSpecificData.TryGetValue("AddAsAppointments", out object addAsAppointments)))
object profileValue;
object outlookCalendarValue;
object addAsAppointments;
if (!(calendarSpecificData.TryGetValue("ProfileName", out profileValue) &&
calendarSpecificData.TryGetValue("OutlookCalendar", out outlookCalendarValue) &&
calendarSpecificData.TryGetValue("AddAsAppointments", out addAsAppointments)))
{
throw new InvalidOperationException(
string.Format(
Expand All @@ -1399,16 +1401,17 @@ public void CheckCalendarSpecificData(IDictionary<string, object> calendarSpecif
ProfileName = profileValue as string;
OutlookCalendar = outlookCalendarValue as OutlookFolder;
AddAsAppointments = (bool) addAsAppointments;
if (calendarSpecificData.TryGetValue("EventCategory", out object eventCategory))
object eventCategory;
if (calendarSpecificData.TryGetValue("EventCategory", out eventCategory))
{
EventCategory = eventCategory as Category;
}
else
{
EventCategory = null;
}

if (calendarSpecificData.TryGetValue("SetOrganizer", out object setOrganizer))
object setOrganizer;
if (calendarSpecificData.TryGetValue("SetOrganizer", out setOrganizer))
{
SetOrganizer = (bool) setOrganizer;
}
Expand Down

0 comments on commit e2f6a91

Please sign in to comment.