Esempio n. 1
0
        private void PopulateAppVersions()
        {
            LiquidHashLabel.Text = "LiquidHash " + LiquidHashInstaller.GetInstalledMinerVersion();
            revisionLabel.Text   = String.Format("(rev {0})", LiquidHashInstaller.GetInstalledMinerRevision());
            revisionLabel.Left   = LiquidHashLabel.Left + LiquidHashLabel.Width;

            PopulateBackendMinerVersion();
        }
Esempio n. 2
0
        private void OutputAboutInfo()
        {
            var compileDate  = Assembly.GetExecutingAssembly().GetCompileDate();
            var minerVersion = LiquidHashInstaller.GetInstalledMinerVersion();

            var row = 0;

            if (SetCursorPosition(0, row++))
            {
                WriteText("  _____     _ _   _ _____ _".PadRight(Console.WindowWidth), ConsoleColor.Cyan);
            }
            if (SetCursorPosition(0, row++))
            {
                WriteText(" |     |_ _| | |_|_|     |_|___ ___ ___".PadRight(Console.WindowWidth), ConsoleColor.Cyan);
            }
            if (SetCursorPosition(0, row++))
            {
                WriteText(" | | | | | | |  _| | | | | |   | -_|  _|".PadRight(Console.WindowWidth), ConsoleColor.Cyan);
            }
            if (SetCursorPosition(0, row++))
            {
                WriteText(" |_|_|_|___|_|_| |_|_|_|_|_|_|_|___|_|  ".PadRight(Console.WindowWidth), ConsoleColor.Cyan);
            }

            ClearRow(row);
            row++;

            var col = 0;

            if (SetCursorPosition(col, row))
            {
                var versionText   = String.Format(" {0}", minerVersion);
                var copyrightText = String.Format("(C) 2013-{0} - {1}", compileDate.Year, "http://LiquidHashapp.com");
                WriteText(versionText.PadRight(8), ConsoleColor.White);

                col = versionText.Length + 2;
                if (SetCursorPosition(col, row))
                {
                    WriteText("[", ConsoleColor.DarkGray);
                }

                col++;
                if (SetCursorPosition(col, row))
                {
                    WriteText(copyrightText, ConsoleColor.Gray);
                }

                col += copyrightText.Length;
                if (SetCursorPosition(col, row))
                {
                    WriteText("]".PadRight(Console.WindowWidth - col), ConsoleColor.DarkGray);
                }
            }
        }