Exemple #1
0
 public static void TipRegionByKey(Rect rect, string key, NamedArgument arg1, NamedArgument arg2, NamedArgument arg3)
 {
     if (Mouse.IsOver(rect) || DebugViewSettings.drawTooltipEdges)
     {
         TipRegion(rect, key.Translate(arg1, arg2, arg3));
     }
 }
 public static string Formatted(this string str, NamedArgument arg1)
 {
     argsLabels.Clear();
     argsObjects.Clear();
     argsLabels.Add(arg1.label);
     argsObjects.Add(arg1.arg);
     return(GrammarResolverSimple.Formatted(str, argsLabels, argsObjects));
 }
 public static string Formatted(this string str, NamedArgument arg1, NamedArgument arg2)
 {
     GrammarResolverSimpleStringExtensions.argsLabels.Clear();
     GrammarResolverSimpleStringExtensions.argsObjects.Clear();
     GrammarResolverSimpleStringExtensions.argsLabels.Add(arg1.label);
     GrammarResolverSimpleStringExtensions.argsObjects.Add(arg1.arg);
     GrammarResolverSimpleStringExtensions.argsLabels.Add(arg2.label);
     GrammarResolverSimpleStringExtensions.argsObjects.Add(arg2.arg);
     return(GrammarResolverSimple.Formatted(str, GrammarResolverSimpleStringExtensions.argsLabels, GrammarResolverSimpleStringExtensions.argsObjects));
 }
 public static TaggedString Formatted(this string str, NamedArgument arg1, NamedArgument arg2, NamedArgument arg3, NamedArgument arg4, NamedArgument arg5)
 {
     argsLabels.Clear();
     argsObjects.Clear();
     argsLabels.Add(arg1.label);
     argsObjects.Add(arg1.arg);
     argsLabels.Add(arg2.label);
     argsObjects.Add(arg2.arg);
     argsLabels.Add(arg3.label);
     argsObjects.Add(arg3.arg);
     argsLabels.Add(arg4.label);
     argsObjects.Add(arg4.arg);
     argsLabels.Add(arg5.label);
     argsObjects.Add(arg5.arg);
     return(GrammarResolverSimple.Formatted(str, argsLabels, argsObjects));
 }
 public static string Formatted(this string str, NamedArgument arg1, NamedArgument arg2, NamedArgument arg3, NamedArgument arg4, NamedArgument arg5, NamedArgument arg6, NamedArgument arg7, NamedArgument arg8)
 {
     GrammarResolverSimpleStringExtensions.argsLabels.Clear();
     GrammarResolverSimpleStringExtensions.argsObjects.Clear();
     GrammarResolverSimpleStringExtensions.argsLabels.Add(arg1.label);
     GrammarResolverSimpleStringExtensions.argsObjects.Add(arg1.arg);
     GrammarResolverSimpleStringExtensions.argsLabels.Add(arg2.label);
     GrammarResolverSimpleStringExtensions.argsObjects.Add(arg2.arg);
     GrammarResolverSimpleStringExtensions.argsLabels.Add(arg3.label);
     GrammarResolverSimpleStringExtensions.argsObjects.Add(arg3.arg);
     GrammarResolverSimpleStringExtensions.argsLabels.Add(arg4.label);
     GrammarResolverSimpleStringExtensions.argsObjects.Add(arg4.arg);
     GrammarResolverSimpleStringExtensions.argsLabels.Add(arg5.label);
     GrammarResolverSimpleStringExtensions.argsObjects.Add(arg5.arg);
     GrammarResolverSimpleStringExtensions.argsLabels.Add(arg6.label);
     GrammarResolverSimpleStringExtensions.argsObjects.Add(arg6.arg);
     GrammarResolverSimpleStringExtensions.argsLabels.Add(arg7.label);
     GrammarResolverSimpleStringExtensions.argsObjects.Add(arg7.arg);
     GrammarResolverSimpleStringExtensions.argsLabels.Add(arg8.label);
     GrammarResolverSimpleStringExtensions.argsObjects.Add(arg8.arg);
     return(GrammarResolverSimple.Formatted(str, GrammarResolverSimpleStringExtensions.argsLabels, GrammarResolverSimpleStringExtensions.argsObjects));
 }
 public static TaggedString Formatted(this TaggedString str, NamedArgument arg1, NamedArgument arg2, NamedArgument arg3, NamedArgument arg4, NamedArgument arg5)
 {
     return(str.RawText.Formatted(arg1, arg2, arg3, arg4, arg5));
 }
 public static TaggedString Formatted(this TaggedString str, NamedArgument arg1)
 {
     return(str.RawText.Formatted(arg1));
 }
Exemple #8
0
 public static string Translate(this string key, NamedArgument arg1)
 {
     return(key.Translate().Formatted(arg1));
 }
Exemple #9
0
 public static string Translate(this string key, NamedArgument arg1, NamedArgument arg2, NamedArgument arg3, NamedArgument arg4, NamedArgument arg5, NamedArgument arg6, NamedArgument arg7, NamedArgument arg8)
 {
     return(key.Translate().Formatted(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8));
 }