public static string GetLink(SupportRequest kind) { int index = (int)kind; if (index < _LINKS.Length) { return(_LINKS[index]); } else { throw new NotImplementedException(kind.ToString()); } }
/// <summary> /// Performs support with providing information about errors. Does not throw exceptions /// </summary> /// <param name="kind">kind of support</param> public static void DoSupport(SupportRequest kind) { int index = (int)kind; if (index < _LINKS.Length) { string webLink = _LINKS[index]; OpenWebLink(webLink); } else { throw new NotImplementedException(kind.ToString()); } }