static NSString ServiceOptionsToNSString(CNInstantMessageServiceOption serviceOption) { switch (serviceOption) { case CNInstantMessageServiceOption.Aim: return CNInstantMessageServiceKey.Aim; case CNInstantMessageServiceOption.Facebook: return CNInstantMessageServiceKey.Facebook; case CNInstantMessageServiceOption.GaduGadu: return CNInstantMessageServiceKey.GaduGadu; case CNInstantMessageServiceOption.GoogleTalk: return CNInstantMessageServiceKey.GoogleTalk; case CNInstantMessageServiceOption.Icq: return CNInstantMessageServiceKey.Icq; case CNInstantMessageServiceOption.Jabber: return CNInstantMessageServiceKey.Jabber; case CNInstantMessageServiceOption.Msn: return CNInstantMessageServiceKey.Msn; case CNInstantMessageServiceOption.QQ: return CNInstantMessageServiceKey.QQ; case CNInstantMessageServiceOption.Skype: return CNInstantMessageServiceKey.Skype; case CNInstantMessageServiceOption.Yahoo: return CNInstantMessageServiceKey.Yahoo; default: throw new ArgumentOutOfRangeException ("serviceOption"); } }
static NSString ServiceOptionsToNSString(CNInstantMessageServiceOption serviceOption) { switch (serviceOption) { case CNInstantMessageServiceOption.Aim: return(CNInstantMessageServiceKey.Aim); case CNInstantMessageServiceOption.Facebook: return(CNInstantMessageServiceKey.Facebook); case CNInstantMessageServiceOption.GaduGadu: return(CNInstantMessageServiceKey.GaduGadu); case CNInstantMessageServiceOption.GoogleTalk: return(CNInstantMessageServiceKey.GoogleTalk); case CNInstantMessageServiceOption.Icq: return(CNInstantMessageServiceKey.Icq); case CNInstantMessageServiceOption.Jabber: return(CNInstantMessageServiceKey.Jabber); case CNInstantMessageServiceOption.Msn: return(CNInstantMessageServiceKey.Msn); case CNInstantMessageServiceOption.QQ: return(CNInstantMessageServiceKey.QQ); case CNInstantMessageServiceOption.Skype: return(CNInstantMessageServiceKey.Skype); case CNInstantMessageServiceOption.Yahoo: return(CNInstantMessageServiceKey.Yahoo); default: throw new ArgumentOutOfRangeException("serviceOption"); } }
public static string LocalizeService(CNInstantMessageServiceOption serviceOption) { var srvc = ServiceOptionsToNSString (serviceOption); return LocalizeService (srvc); }
public static string LocalizeService(CNInstantMessageServiceOption serviceOption) { var srvc = ServiceOptionsToNSString(serviceOption); return(LocalizeService(srvc)); }