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); }
public static string ConvertFormatString(TFormatLabel ThemeLabel, string Version) { return(ThemeLabel.FormatString.Replace("{version}", Version)); }