示例#1
0
        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();
        }
示例#2
0
 public static ProgramInformations GetOrNewInstance()
 {
     return(_classInstance ?? (_classInstance = new ProgramInformations()));
 }