Exemple #1
0
        /// <summary>Initializes the console window.</summary>
        private static void InitializeConsoleWindow()
        {
            Console.Title           = Application.ProductName;
            Console.BackgroundColor = BackgroundColor;
            Console.ForegroundColor = TextColor;
            FileVersionInfo versionInfo = FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location);

            string _productName = ProductName;

            StringManager.DrawCenterText(_productName);

            string _version = "v." + CurrentVersion;

            StringManager.DrawCenterText(_version);

            string _website = versionInfo.LegalTrademarks;

            StringManager.DrawCenterText(_website);

            string _updateState = "Update state: " + (true ? "Updated." : "Update available.");

            StringManager.DrawCenterText(_updateState);

            Console.Write(Environment.NewLine);

            var _tip = "Type: 'Help' - Provides Help information for Comet commands.";

            StringManager.DrawCenterText(_tip);

            Console.Write(Environment.NewLine);
        }