/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void AcceptButtonClick(object sender, EventArgs e) { if (_virus.IsActive) { } else { if (MessageBox.Show( "This protection will cost you 15 QuikCoin. If you accept, it will be deducted automatically. Are you sure?", "Payment Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) { return; } if (_wallet.Balance < 15) { MessageBox.Show("Sorry, you do not have enough QuikCoin for this purchase."); return; } _wallet.IsProtected = true; _wallet.Balance -= 15; _mainResourceLabel.Text = _wallet.Balance.ToString(CultureInfo.InvariantCulture); ScrollDownTimer.Start(); FadeOut(this, 100); } }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ExitLabel_Click(object sender, EventArgs e) { if (MessageBox.Show("By closing this window, will not be offered security again. Are you sure?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) { return; } ScrollDownTimer.Start(); FadeOut(this, 50); Hide(); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void DeclineButtonClick(object sender, EventArgs e) { ScrollDownTimer.Start(); FadeOut(this, 100); ReminderTimer.Start(); }