Table of Contents

Class GlobalData

Namespace
RadioExt_Helper.utility
Assembly
RadioExt-Helper.dll
The `GlobalData` class is a utility class that provides global data and functionality used throughout the application. It contains static properties and methods for managing resources, configuration, logging, and culture settings.
public static class GlobalData
Inheritance
GlobalData
Inherited Members

Fields

AppVersion

The version of the application.
public static readonly Version AppVersion

Field Value

Version

Strings

Get the resource manager for accessing string resources.
public static readonly ResourceManager Strings

Field Value

ResourceManager

Properties

ConfigManager

Get the configuration manager responsible for managing the application configuration.
public static ConfigManager<ApplicationConfig> ConfigManager { get; }

Property Value

ConfigManager<ApplicationConfig>

Methods

CloneTemplateComboBox()

Creates a clone of the template ComboBox object.
public static ComboBox CloneTemplateComboBox()

Returns

ComboBox
A new instance of ComboBox with the same properties as the template ComboBox object.

GetLogFilePath()

Retrieves the full path to the most recent log file.
public static string GetLogFilePath()

Returns

string
The full path to the most recent log file, or null if no log files are found.

GetLogFolderPath()

Retrieves the path to the containing log folder.
public static string GetLogFolderPath()

Returns

string
The log folder path. If log folder path is not found in the config, the default log folder path is returned.

Initialize()

Initializes the global data. This method is responsible for initializing the global data used throughout the application. It performs the following tasks:
  • Loads UI icons
  • Initializes the configuration
  • Initializes logging
  • Sets the culture based on the language configuration
public static void Initialize()

InitializeComboBoxTemplate()

Initializes the ComboBox template with default properties.
public static void InitializeComboBoxTemplate()

SetCulture(string)

Sets the culture of the application user interface.
public static void SetCulture(string culture)

Parameters

culture string
The culture to set, in the format "[Language] ([Culture])", e.g., "English (en)".