public void Initialize(string programName = null, string programVersion = null, string programAuthor = null, string authorURL = null) { _programInformations = ProgramInformations.GetOrNewInstance(); _consoleUtils = ConsoleUtils.GetOrNewInstance(); _programInformations.SetProgramName(programName); _programInformations.SetProgramVersion(programVersion); _programInformations.SetProgramAuthor(programAuthor, authorURL); _consoleUtils.UpdateTitle(); }
public static ProgramInformations GetOrNewInstance() { return(_classInstance ?? (_classInstance = new ProgramInformations())); }