CUDA_Manager.Form1.TrayTipper C# (CSharp) Method

TrayTipper() public method

public TrayTipper ( ) : string
return string
        public string TrayTipper()
        {
            if (activeminer != null && buStart.Text == "Stop Miner")
            {
                string threshold = "CUDA Manager\r\n" + "\r\n" + tsHR.Text.Replace("Avg. Hashrate: ", "") + "\r\n" + hightemp + "°C";
                int limiter = (63 - threshold.Length) - 3;
                if (activeminer.Length > limiter)
                    return activeminer.Substring(0, limiter) + "...";
                return activeminer;
            }
            return "Idle";
        }