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(); }
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(); }