string GetResourceString(string key)
{
switch(key) {
case "HtmlEditor_toolbar_popup_LinkProperties_button_Cancel":
return "Cancel";
case "HtmlEditor_toolbar_popup_LinkProperties_button_OK":
return "OK";
case "HtmlEditor_toolbar_popup_LinkProperties_field_URL":
return "URL";
case "HtmlEditor_toolbar_popup_LinkProperties_field_Target":
return "Target";
case "HtmlEditor_toolbar_popup_LinkProperties_field_Target_New":
return "New window";
case "HtmlEditor_toolbar_popup_LinkProperties_field_Target_Current":
return "Current window";
case "HtmlEditor_toolbar_popup_LinkProperties_field_Target_Parent":
return "Parent window";
case "HtmlEditor_toolbar_popup_LinkProperties_field_Target_Top":
return "Top window";
default:
throw new ArgumentOutOfRangeException("key", key, "Unknown resource key");
}
}