コード例 #1
0
        public void HideNotProfitable()
        {
            if (ConfigManager.GeneralConfig.UseIFTTT)
            {
                if (IsNotProfitable)
                {
                    IFTTT.PostToIFTTT("nicehash", "Mining is once again profitable and has resumed.");
                    IsNotProfitable = false;
                }
            }

            label_NotProfitable.Visible = false;
            label_NotProfitable.Invalidate();
        }
コード例 #2
0
        public void ShowNotProfitable(string msg)
        {
            if (ConfigManager.GeneralConfig.UseIFTTT)
            {
                if (!IsNotProfitable)
                {
                    IFTTT.PostToIFTTT("nicehash", msg);
                    IsNotProfitable = true;
                }
            }

            label_NotProfitable.Visible = true;
            label_NotProfitable.Text    = msg;
            label_NotProfitable.Invalidate();
        }