private void DisplayMixes() { const string officeMixHost = "mix.office.com"; const string swayHost = "sway.com"; if (SlkUtilities.ContainsString(AssignmentProperties.Description, officeMixHost) || SlkUtilities.ContainsString(AssignmentProperties.Description, swayHost)) { MatchCollection links = SlkUtilities.FindLinks(AssignmentProperties.Description); foreach (Match match in links) { if (SlkUtilities.ContainsString(match.Value, officeMixHost)) { // It is a link to an Office Mix string embedUrl = SlkUtilities.GenerateMixUrl(match.Value); AddMix(embedUrl); } else if (SlkUtilities.ContainsString(match.Value, swayHost)) { string embedUrl = SlkUtilities.GenerateSwayUrl(match.Value); AddSway(embedUrl); } } } }