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