示例#1
0
 /// <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);
     }
 }
示例#2
0
 /// <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();
 }
示例#3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ScrollDownTimer_Tick(object sender, EventArgs e)
        {
            Location = new Point(Screen.PrimaryScreen.WorkingArea.Width - Width,
                                 Screen.PrimaryScreen.WorkingArea.Height - _scrollDownIndex);

            _scrollDownIndex -= 5;

            if (_scrollDownIndex > 0)
            {
                return;
            }
            ScrollDownTimer.Stop();
            _scrollDownIndex = Height;
        }
示例#4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void DeclineButtonClick(object sender, EventArgs e)
 {
     ScrollDownTimer.Start();
     FadeOut(this, 100);
     ReminderTimer.Start();
 }