Example #1
0
        void UpdateCheck_Tick(object sender, EventArgs e)
        {
            Helpers.ConsolePrint("NICEHASH: version get");
            string ver = NiceHashStats.GetVersion(textBox1.Text.Trim() + "." + textBox2.Text.Trim());

            if (ver == null)
            {
                return;
            }

            if (ver != Application.ProductVersion)
            {
                linkLabel2.Text = "IMPORTANT! New version v" + ver + " has\r\nbeen released. Click here to download it.";
                VisitURL        = "https://github.com/nicehash/NiceHashMiner/releases/tag/" + ver;
            }
        }
Example #2
0
        void UpdateCheck_Tick(object sender, EventArgs e)
        {
            Helpers.ConsolePrint("NICEHASH", "Version get");
            string ver = NiceHashStats.GetVersion(textBoxBTCAddress.Text.Trim() + "." + textBoxWorkerName.Text.Trim());

            if (ver == null)
            {
                return;
            }

            Version programVersion = new Version(Application.ProductVersion);
            Version onlineVersion  = new Version(ver);
            int     ret            = programVersion.CompareTo(onlineVersion);

            if (ret < 0)
            {
                linkLabelVisitUs.Text = String.Format(International.GetText("Form_Main_new_version_released"), ver);
                VisitURL = Links.VisitURLNew + ver;
            }
        }