public ParametricLocalTextSource(ILocalTextSource item, params object[] args) { _item = item; _args = args; IsLocalizable = item.IsLocalizable; if (_item is INotifyPropertyChanged npc) { npc.PropertyChanged += NpcOnPropertyChanged; } UpdateValue(); }
public static ILocalTextSource WithParameters(this ILocalTextSource src, params object[] args) { return(new ParametricLocalTextSource(src, args)); }
public static string Format(this ILocalTextSource src, params object[] args) { return(string.Format(src.Value ?? string.Empty, args)); }
public CombinedLocalTextSource(ILocalTextSource first, string second) : this(first, new FakeTextSource(second)) { }
public CombinedLocalTextSource(string first, ILocalTextSource second) : this(new FakeTextSource(first), second) { }