private void GetLocalizedString(LocalizedStringEventArgs args) { var stringValue = ModuleStrings.ResourceManager.GetString(args.Key); if (!string.IsNullOrWhiteSpace(stringValue)) { args.AddStringValue(stringValue); } }
private string GetMsgText(string msg) { if (msg != null && msg.StartsWith("#")) { var args = new LocalizedStringEventArgs() {Key = msg.Substring(1)}; eventaggregator.GetEvent<GetLocalizedStringEvent>().Publish(args); msg = args.Values.FirstOrDefault(); } return msg; }