Exemplo n.º 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();
        }
Exemplo n.º 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();
        }