Ejemplo n.º 1
0
 public static void ApplyFormatLabel(Label Label, TFormatLabel ThemeLabel, string Version)
 {
     Label.Visibility = ThemeLabel.Enabled ? Visibility.Visible : Visibility.Hidden;
     Label.Background = ConvertColor(ThemeLabel.BackColor);
     Label.Foreground = ConvertColor(ThemeLabel.TextColor);
     Label.FontFamily = new FontFamily(ThemeLabel.Font.Name);
     Label.FontSize   = ThemeLabel.Font.Size;
     Label.Content    = ThemeLabel.FormatString.Replace("{version}", Version);
 }
Ejemplo n.º 2
0
 public static string ConvertFormatString(TFormatLabel ThemeLabel, string Version)
 {
     return(ThemeLabel.FormatString.Replace("{version}", Version));
 }