Advertisement
DashWaLLker

PD2 Heists

Nov 2nd, 2014
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 23.59 KB | None | 0 0
  1. // DOWNLOAD LINK:
  2. // drive.google.com/file/d/0BzWHrbCZL7VLMC1yaXZnaW9JdFk/view
  3.  
  4. using System;
  5. using System.Collections.Generic;
  6. using System.ComponentModel;
  7. using System.Data;
  8. using System.Drawing;
  9. using System.Linq;
  10. using System.Text;
  11. using System.Threading.Tasks;
  12. using System.Windows.Forms;
  13.  
  14. namespace PD2_Heists
  15. {
  16.     class Heist
  17.     {
  18.         string name, contractor, type, stealth;
  19.         int days;
  20.         bool check;
  21.  
  22.         public string Name
  23.         {
  24.             get { return name; }
  25.         }
  26.         public string Contractor
  27.         {
  28.             get { return contractor; }
  29.         }
  30.         public string Type
  31.         {
  32.             get { return type; }
  33.         }
  34.         public string Stealth
  35.         {
  36.             get { return stealth; }
  37.         }
  38.         public int Days
  39.         {
  40.             get { return days; }
  41.         }  
  42.         public bool Check
  43.         {
  44.             get { return check; }
  45.             set { check = value; }
  46.         }
  47.  
  48.         int[] pay = new int[5];
  49.         int[] exp = new int[5];
  50.         int[] payPro = new int[5];
  51.         int[] expPro = new int[5];
  52.         /// <summary>
  53.         /// Constructor
  54.         /// </summary>
  55.         /// <param name="name">Name of Heist</param>
  56.         /// <param name="contractor">Contractor of Heist</param>
  57.         /// <param name="type">Regular/Pro (only)/DLC/Community</param>
  58.         /// <param name="days">Number of days in Heist</param>
  59.         /// <param name="stealth">"+x%" = stealth-able, "No Bonus" = not stealth-able</param>
  60.         /// <param name="pay0">Pay - Normal</param>
  61.         /// <param name="pay1">Pay - Hard</param>
  62.         /// <param name="pay2">Pay - Very Hard</param>
  63.         /// <param name="pay3">Pay - Overkill</param>
  64.         /// <param name="pay4">Pay - Death Wish</param>
  65.         /// <param name="exp0">EXP - Normal</param>
  66.         /// <param name="exp1">EXP - Hard</param>
  67.         /// <param name="exp2">EXP - Very Hard</param>
  68.         /// <param name="exp3">EXP - Overkill</param>
  69.         /// <param name="exp4">EXP - Death Wish</param>
  70.         /// <param name="payPro0">[PRO] Pay - Normal (N/A)</param>
  71.         /// <param name="payPro1">[PRO] Pay - Hard</param>
  72.         /// <param name="payPro2">[PRO] Pay - Very Hard</param>
  73.         /// <param name="payPro3">[PRO] Pay - Overkill</param>
  74.         /// <param name="payPro4">[PRO] Pay - Death Wish</param>
  75.         /// <param name="expPro0">[PRO] EXP - Normal (N/A)</param>
  76.         /// <param name="expPro1">[PRO] EXP - Hard</param>
  77.         /// <param name="expPro2">[PRO] EXP - Very Hard</param>
  78.         /// <param name="expPro3">[PRO] EXP - Overkill</param>
  79.         /// <param name="expPro4">[PRO] EXP - Death Wish</param>
  80.         /// <param name="check">true = Checked, false = Unchecked</param>
  81.         public Heist(string name, string contractor, string type, int days, string stealth, int pay0, int pay1, int pay2, int pay3, int pay4, int exp0, int exp1, int exp2, int exp3, int exp4, int payPro0, int payPro1, int payPro2, int payPro3, int payPro4, int expPro0, int expPro1, int expPro2, int expPro3, int expPro4, bool check)
  82.         {
  83.             this.name = name;
  84.             this.contractor = contractor;
  85.             this.type = type;
  86.             this.days = days;
  87.             this.stealth = stealth;
  88.             this.check = check;
  89.             pay[0] = pay0;
  90.             pay[1] = pay1;
  91.             pay[2] = pay2;
  92.             pay[3] = pay3;
  93.             pay[4] = pay4;
  94.             exp[0] = exp0;
  95.             exp[1] = exp1;
  96.             exp[2] = exp2;
  97.             exp[3] = exp3;
  98.             exp[4] = exp4;
  99.             payPro[0] = payPro0;
  100.             payPro[1] = payPro1;
  101.             payPro[2] = payPro2;
  102.             payPro[3] = payPro3;
  103.             payPro[4] = payPro4;
  104.             expPro[0] = expPro0;
  105.             expPro[1] = expPro1;
  106.             expPro[2] = expPro2;
  107.             expPro[3] = expPro3;
  108.             expPro[4] = expPro4;
  109.         }
  110.         public int Pay(int n)
  111.         {
  112.             return pay[n];
  113.         }
  114.         public int EXP(int n)
  115.         {
  116.             return exp[n];
  117.         }
  118.         public int PayPro(int n)
  119.         {
  120.             return payPro[n];
  121.         }
  122.         public int EXPPro(int n)
  123.         {
  124.             return expPro[n];
  125.         }
  126.     }
  127.  
  128.     public partial class Form1 : Form
  129.     {
  130.         private void Form1_Load(object sender, EventArgs e) {}
  131.         static int N = 27; //Number of available heists
  132.         static double bonus = 0; //Blending In perk + Infamy bonus
  133.         CheckBox[] checkBox = new CheckBox[N]; //Array to hold all heist checkboxes
  134.         Heist[] heist = new Heist[N]; //Custom Heists object array
  135.         public Form1()
  136.         {
  137.             InitializeComponent();
  138.             //Bain
  139.             checkBox[0] = ArtGallery;
  140.             checkBox[1] = BankHeist;
  141.             checkBox[2] = BankHeistCash;
  142.             checkBox[3] = BankHeistDeposit;
  143.             checkBox[4] = BankHeistGold;
  144.             checkBox[5] = DiamondStore;
  145.             checkBox[6] = GoBank;
  146.             checkBox[7] = JewelryStore;
  147.             checkBox[8] = ShadowRaid;
  148.             checkBox[9] = TransportCrossroads;
  149.             checkBox[10] = TransportDowntown;
  150.             checkBox[11] = TransportHarbor;
  151.             checkBox[12] = TransportPark;
  152.             checkBox[13] = TransportUnderpass;
  153.             heist[0] = new Heist("Art Gallery", "Bain", "Community", 1, "+10%", 30000, 62500, 200000, 300000, 400000, 4200, 12600, 25200, 46200, 58800, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, true);
  154.             heist[1] = new Heist("Bank Heist", "Bain", "Pro", 1, "+10%", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 200000, 240000, 350000, 425000, 0, 30000, 60000, 110000, 140000, true);
  155.             heist[2] = new Heist("Bank Heist: Cash", "Bain", "Regular", 1, "+10%", 50000, 75000, 200000, 300000, 375000, 10000, 30000, 60000, 110000, 140000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, true);
  156.             heist[3] = new Heist("Bank Heist: Deposit", "Bain", "Regular", 1, "+10%", 150000, 175000, 220000, 340000, 380000, 10000, 30000, 60000, 110000, 140000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, true);
  157.             heist[4] = new Heist("Bank Heist: Gold", "Bain", "Pro", 1, "+10%", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 200000, 270000, 380000, 450000, 0, 30000, 60000, 110000, 140000, true);
  158.             heist[5] = new Heist("Diamond Store", "Bain", "Regular", 1, "+10%", 30000, 60000, 150000, 250000, 300000, 6000, 18000, 36000, 66000, 84000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, true);
  159.             heist[6] = new Heist("Go Bank", "Bain", "Regular", 1, "+10%", 275000, 550000, 1375000, 2750000, 3500000, 16000, 48000, 96000, 211200, 268800, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, true);
  160.             heist[7] = new Heist("Jewelry Store", "Bain", "Regular", 1, "+5%", 30000, 60000, 150000, 250000, 300000, 2000, 6000, 12000, 22000, 28000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, true);
  161.             heist[8] = new Heist("Shadow Raid", "Bain", "Regular", 1, "+5%", 50000, 100000, 150000, 200000, 400000, 10000, 30000, 60000, 165000, 252000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, true);
  162.             heist[9] = new Heist("Transport: Crossroads", "Bain", "DLC", 1, "No Bonus", 152500, 170000, 250000, 310000, 370000, 10000, 30000, 60000, 132000, 168000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, true);
  163.             heist[10] = new Heist("Transport: Downtown", "Bain", "DLC", 1, "No Bonus", 132500, 155000, 250000, 260000, 320000, 10000, 30000, 60000, 132000, 168000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, true);
  164.             heist[11] = new Heist("Transport: Harbor", "Bain", "DLC", 1, "No Bonus", 112500, 145000, 200000, 210000, 270000, 14500, 33500, 37000, 191400, 243600, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, true);
  165.             heist[12] = new Heist("Transport: Park", "Bain", "DLC", 1, "No Bonus", 142500, 155000, 200000, 215000, 280000, 10000, 30000, 60000, 132000, 168000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, true);
  166.             heist[13] = new Heist("Transport: Underpass", "Bain", "DLC", 1, "No Bonus", 137500, 155000, 240000, 265000, 333000, 10000, 30000, 60000, 132000, 168000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, true);
  167.             //Hector
  168.             checkBox[14] = Firestarter;
  169.             checkBox[15] = Rats;
  170.             checkBox[16] = Watchdogs;
  171.             heist[14] = new Heist("Firestarter", "Hector", "Regular", 3, "+5-20%", 350000, 475000, 625000, 1000000, 1250000, 24000, 72000, 144000, 264000, 336000, 0, 550000, 800000, 1250000, 1500000, 0, 84000, 168000, 308000, 392000, true);
  172.             heist[15] = new Heist("Rats", "Hector", "Regular", 3, "No Bonus", 50000, 75000, 100000, 150000, 250000, 16000, 48000, 96000, 176000, 224000, 0, 75000, 150000, 200000, 400000, 0, 60000, 120000, 220000, 504000, true);
  173.             heist[16] = new Heist("Watchdogs", "Hector", "Regular", 2, "No Bonus", 300000, 370000, 625000, 925000, 1300000, 20000, 60000, 120000, 220000, 280000, 0, 425000, 750000, 1000000, 1450000, 0, 84000, 168000, 308000, 392000, true);
  174.             //The Dentist
  175.             checkBox[17] = HotlineMiami;
  176.             checkBox[18] = HoxtonBreakout;
  177.             checkBox[19] = TheBigBank;
  178.             heist[17] = new Heist("Hotline Miami", "Dentist", "DLC", 2, "No Bonus", 185000, 215000, 300000, 350000, 400000, 39200, 117600, 235200, 431200, 548800, 0, 175000, 250000, 325000, 500000, 0, 144000, 288000, 528000, 672000, true);
  179.             heist[18] = new Heist("Hoxton Breakout", "Dentist", "Community", 2, "No Bonus", 1250000, 2500000, 6250000, 12500000, 16000000, 89880, 269640, 539280, 988680, 1258320, 0, 2900000, 7250000, 14500000, 19000000, 0, 288000, 576000, 1056000, 1344000, true);
  180.             heist[19] = new Heist("The Big Bank", "Dentist", "DLC", 1, "+15%", 450000, 675000, 900000, 1550000, 1900000, 28000, 84000, 168000, 308000, 392000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, true);
  181.             //The Elephant
  182.             checkBox[20] = BigOil;
  183.             checkBox[21] = ElectionDay;
  184.             checkBox[22] = FramingFrame;
  185.             heist[20] = new Heist("Big Oil", "Elephant", "Pro", 2, "+15%", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1500000, 2250000, 2750000, 4250000, 0, 96000, 192000, 352000, 448000, true);
  186.             heist[21] = new Heist("Election Day", "Elephant", "Regular", 2, "+5-20%", 100000, 125000, 200000, 300000, 450000, 16000, 48000, 96000, 176000, 224000, 0, 175000, 250000, 325000, 500000, 0, 60000, 120000, 220000, 280000, true);
  187.             heist[22] = new Heist("Framing Frame", "Elephant", "Regular", 3, "+3-25%", 300000, 600000, 1500000, 3000000, 4000000, 20000, 60000, 120000, 220000, 280000, 0, 550000, 1650000, 3300000, 4400000, 0, 96000, 192000, 352000, 448000, true);
  188.             //Vlad
  189.             checkBox[23] = FourStores;
  190.             checkBox[24] = Mallcrasher;
  191.             checkBox[25] = Nightclub;
  192.             checkBox[26] = UkrainianJob;
  193.             heist[23] = new Heist("Four Stores", "Vlad", "Regular", 1, "+5%", 45000, 90000, 225000, 450000, 600000, 4000, 12000, 24000, 44000, 56000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, true);
  194.             heist[24] = new Heist("Mallcrasher", "Vlad", "Regular", 1, "No Bonus", 45000, 90000, 225000, 450000, 600000, 4000, 12000, 24000, 44000, 56000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, true);
  195.             heist[25] = new Heist("Nightclub", "Vlad", "Regular", 1, "+10%", 100000, 112500, 200000, 300000, 400000, 10000, 30000, 60000, 110000, 14000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, true);
  196.             heist[26] = new Heist("Ukrainian Job", "Vlad", "Pro", 1, "+5%", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 120000, 130000, 150000, 200000, 0, 12000, 24000, 44000, 56000, true);
  197.         }
  198.  
  199.         private void Randomize_Click(object sender, EventArgs e) //Randomize button
  200.         {
  201.             Random r = new Random(); //Randomizer
  202.             int index = 0; //Multi-purpose
  203.             for (int i = 0; i < N; i++)  //
  204.             {                            //
  205.                 index = i;               //
  206.                 if (heist[i].Check)      //Checks if a heist is selected (if there's at least 1 checkmark)
  207.                     break;               //
  208.             }                            //
  209.             if (heist[index].Check)      //
  210.             {
  211.                 do
  212.                     index = r.Next(N);       //Randomizing
  213.                 while (!heist[index].Check); //While heist is not checked
  214.                 double stealthBonus;
  215.                 double.TryParse(textBox_Stealth.Text, out stealthBonus);
  216.                 stealthBonus = (stealthBonus / 100) + 1;
  217.                 textBox_Heist.Text = heist[index].Name; //Print heist
  218.                 textBox_HeistInfo1.Text = "Pay:\r\n" + heist[index].Pay(Difficulty.Value) + "\r\nEXP:\r\n" + (int)(heist[index].EXP(Difficulty.Value) * (bonus + 1) * stealthBonus) + "\r\nDays:\r\n" + heist[index].Days; //Show selected heist's info
  219.                 textBox_HeistInfo2.Text = "Pay (Pro):\r\n" + heist[index].PayPro(Difficulty.Value) + "\r\nEXP (Pro):\r\n" + (int)(heist[index].EXPPro(Difficulty.Value) * (bonus + 1) * stealthBonus) + "\r\nStealth:\r\n" + heist[index].Stealth; //Show selected heist's info
  220.             }
  221.             else
  222.             {
  223.                 textBox_Heist.Text = "ERROR: No Heists Selected"; //Print error message if no heists selected
  224.                 textBox_HeistInfo1.Text = "Pay:\r\n\r\nEXP:\r\n\r\nDays:"; //Show default heist info 1
  225.                 textBox_HeistInfo2.Text = "Pay (Pro):\r\n\r\nEXP (Pro):\r\n\r\nStealth:"; //Show default heist info 2
  226.             }
  227.         }
  228.  
  229.         ////////////////////////////////////////FILTER OPTIONS////////////////////////////////////////
  230.         private void DLC_CheckedChanged(object sender, EventArgs e) //Check / Uncheck all DLC heists
  231.         {
  232.             for (int i = 0; i < N; i++)
  233.             {
  234.                 if (heist[i].Type == "DLC")
  235.                     checkBox[i].Checked = DLC.Checked;
  236.             }
  237.         }
  238.  
  239.         private void Pro_CheckedChanged(object sender, EventArgs e) //Check / Uncheck all Pro Jobs
  240.         {
  241.             for (int i = 0; i < N; i++)
  242.             {
  243.                 if (heist[i].Type == "Pro")
  244.                     checkBox[i].Checked = Pro.Checked;
  245.             }
  246.         }
  247.  
  248.         private void Community_CheckedChanged(object sender, EventArgs e) //Check / Uncheck all community heists
  249.         {
  250.             for (int i = 0; i < N; i++)
  251.             {
  252.                 if (heist[i].Type == "Community")
  253.                     checkBox[i].Checked = Community.Checked;
  254.             }
  255.         }
  256.  
  257.         private void Stealth_CheckedChanged(object sender, EventArgs e) //Check / Uncheck all loud-only jobs
  258.         {
  259.             for (int i = 0; i < N; i++)
  260.             {
  261.                 if (heist[i].Stealth == "No Bonus")
  262.                     checkBox[i].Checked = !Stealth.Checked;
  263.             }
  264.         }
  265.  
  266.         private void Filter_Click(object sender, EventArgs e) //Pay / EXP Filter button
  267.         {
  268.             int pay, exp, payPro, expPro, setPay, setEXP;
  269.             double stealthBonus;
  270.             int.TryParse(textBox_Pay.Text, out setPay); //Get minimum set Pay
  271.             int.TryParse(textBox_EXP.Text, out setEXP); //Get minimum set EXP
  272.             double.TryParse(textBox_Stealth.Text, out stealthBonus); //Get stealth bonus
  273.             stealthBonus = (stealthBonus / 100) + 1; //Calculate stealth bonus
  274.             for (int i = 0; i < N; i++)
  275.             {
  276.                 pay = heist[i].Pay(Difficulty.Value); //Get Pay
  277.                 payPro = heist[i].PayPro(Difficulty.Value); //Get Pro Pay
  278.                 exp = (int)(heist[i].EXP(Difficulty.Value) * (bonus + 1) * stealthBonus); //Calculate EXP
  279.                 expPro = (int)(heist[i].EXPPro(Difficulty.Value) * (bonus + 1) * stealthBonus); //Calculate Pro EXP
  280.                 if (!((pay >= setPay || payPro >= setPay) && (exp >= setEXP || expPro >= setEXP))) //If Pay or EXP do not meet minimum then uncheck box
  281.                     checkBox[i].Checked = false;
  282.             }
  283.         }
  284.  
  285.         private void Difficulty_Scroll(object sender, EventArgs e) //Difficulty Slider
  286.         {
  287.             if (Difficulty.Value == 0)
  288.             {
  289.                 DifficultyTextBox.Text = "Normal";
  290.                 Pro.Checked = false;
  291.             }
  292.             if (Difficulty.Value == 1)
  293.                 DifficultyTextBox.Text = "Hard";
  294.             if (Difficulty.Value == 2)
  295.                 DifficultyTextBox.Text = "Very Hard";
  296.             if (Difficulty.Value == 3)
  297.                 DifficultyTextBox.Text = "Overkill";
  298.             if (Difficulty.Value == 4)
  299.                 DifficultyTextBox.Text = "Death Wish";
  300.         }
  301.  
  302.         ////////////////////////////////////////BONUSES////////////////////////////////////////
  303.         private void BlendingIn_CheckedChanged(object sender, EventArgs e) //Blending in perk +45% bonus
  304.         {
  305.             if (BlendingIn.Checked)
  306.                 bonus += 0.45;
  307.             else
  308.                 bonus -= 0.45;
  309.         }
  310.  
  311.         private void numericUpDown_Infamy_ValueChanged(object sender, EventArgs e) //Infamy bonus (+5% each level)
  312.         {
  313.             if (BlendingIn.Checked)
  314.                 bonus = 0.45;
  315.             else
  316.                 bonus = 0;
  317.             bonus += ((double)numericUpDown_Infamy.Value * 0.05);
  318.         }
  319.  
  320.         ////////////////////////////////////////CONTRACTORS CHECKMARKS////////////////////////////////////////
  321.         private void Bain_CheckedChanged(object sender, EventArgs e) //Check / Uncheck all of Bain's jobs
  322.         {
  323.             for (int i = 0; i < N; i++)
  324.             {
  325.                 if (heist[i].Contractor == "Bain")
  326.                     checkBox[i].Checked = Bain.Checked;
  327.             }
  328.         }
  329.  
  330.         private void Hector_CheckedChanged(object sender, EventArgs e) //Check / Uncheck all of Hector's jobs
  331.         {
  332.             for (int i = 0; i < N; i++)
  333.             {
  334.                 if (heist[i].Contractor == "Hector")
  335.                     checkBox[i].Checked = Hector.Checked;
  336.             }
  337.         }
  338.  
  339.         private void Dentist_CheckedChanged(object sender, EventArgs e) //Check / Uncheck all of The Dentist's jobs
  340.         {
  341.             for (int i = 0; i < N; i++)
  342.             {
  343.                 if (heist[i].Contractor == "Dentist")
  344.                     checkBox[i].Checked = Dentist.Checked;
  345.             }
  346.         }
  347.  
  348.         private void Elephant_CheckedChanged(object sender, EventArgs e) //Check / Uncheck all of The Elephant's jobs
  349.         {
  350.             for (int i = 0; i < N; i++)
  351.             {
  352.                 if (heist[i].Contractor == "Elephant")
  353.                     checkBox[i].Checked = Elephant.Checked;
  354.             }
  355.         }
  356.  
  357.         private void Vlad_CheckedChanged(object sender, EventArgs e) //Check / Uncheck all of Vlad's jobs
  358.         {
  359.             for (int i = 0; i < N; i++)
  360.             {
  361.                 if (heist[i].Contractor == "Vlad")
  362.                     checkBox[i].Checked = Vlad.Checked;
  363.             }
  364.         }
  365.  
  366.         ////////////////////////////////////////HEISTS CHECKMARKS////////////////////////////////////////
  367.         //Bain
  368.         private void ArtGallery_CheckedChanged(object sender, EventArgs e)
  369.         {
  370.             heist[0].Check = ArtGallery.Checked;
  371.         }
  372.  
  373.         private void BankHeist_CheckedChanged(object sender, EventArgs e)
  374.         {
  375.             heist[1].Check = BankHeist.Checked;
  376.         }
  377.  
  378.         private void BankHeistCash_CheckedChanged(object sender, EventArgs e)
  379.         {
  380.             heist[2].Check = BankHeistCash.Checked;
  381.         }
  382.  
  383.         private void BankHeistDeposit_CheckedChanged(object sender, EventArgs e)
  384.         {
  385.             heist[3].Check = BankHeistDeposit.Checked;
  386.         }
  387.  
  388.         private void BankHeistGold_CheckedChanged(object sender, EventArgs e)
  389.         {
  390.             heist[4].Check = BankHeistGold.Checked;
  391.         }
  392.  
  393.         private void DiamondStore_CheckedChanged(object sender, EventArgs e)
  394.         {
  395.             heist[5].Check = DiamondStore.Checked;
  396.         }
  397.  
  398.         private void GoBank_CheckedChanged(object sender, EventArgs e)
  399.         {
  400.             heist[6].Check = GoBank.Checked;
  401.         }
  402.  
  403.         private void JewelryStore_CheckedChanged(object sender, EventArgs e)
  404.         {
  405.             heist[7].Check = JewelryStore.Checked;
  406.         }
  407.  
  408.         private void ShadowRaid_CheckedChanged(object sender, EventArgs e)
  409.         {
  410.             heist[8].Check = ShadowRaid.Checked;
  411.         }
  412.  
  413.         private void TransportCrossroads_CheckedChanged(object sender, EventArgs e)
  414.         {
  415.             heist[9].Check = TransportCrossroads.Checked;
  416.         }
  417.  
  418.         private void TransportDowntown_CheckedChanged(object sender, EventArgs e)
  419.         {
  420.             heist[10].Check = TransportDowntown.Checked;
  421.         }
  422.  
  423.         private void TransportHarbor_CheckedChanged(object sender, EventArgs e)
  424.         {
  425.             heist[11].Check = TransportHarbor.Checked;
  426.         }
  427.  
  428.         private void TransportPark_CheckedChanged(object sender, EventArgs e)
  429.         {
  430.             heist[12].Check = TransportPark.Checked;
  431.         }
  432.  
  433.         private void TransportUnderpass_CheckedChanged(object sender, EventArgs e)
  434.         {
  435.             heist[13].Check = TransportUnderpass.Checked;
  436.         }
  437.         //Hector
  438.         private void Firestarter_CheckedChanged(object sender, EventArgs e)
  439.         {
  440.             heist[14].Check = Firestarter.Checked;
  441.         }
  442.  
  443.         private void Rats_CheckedChanged(object sender, EventArgs e)
  444.         {
  445.             heist[15].Check = Rats.Checked;
  446.         }
  447.  
  448.         private void Watchdogs_CheckedChanged(object sender, EventArgs e)
  449.         {
  450.             heist[16].Check = Watchdogs.Checked;
  451.         }
  452.         //The Dentist
  453.         private void HotlineMiami_CheckedChanged(object sender, EventArgs e)
  454.         {
  455.             heist[17].Check = HotlineMiami.Checked;
  456.         }
  457.  
  458.         private void HoxtonBreakout_CheckedChanged(object sender, EventArgs e)
  459.         {
  460.             heist[18].Check = HoxtonBreakout.Checked;
  461.         }
  462.  
  463.         private void TheBigBank_CheckedChanged(object sender, EventArgs e)
  464.         {
  465.             heist[19].Check = TheBigBank.Checked;
  466.         }
  467.         //The Elephant
  468.         private void BigOil_CheckedChanged(object sender, EventArgs e)
  469.         {
  470.             heist[20].Check = BigOil.Checked;
  471.         }
  472.  
  473.         private void ElectionDay_CheckedChanged(object sender, EventArgs e)
  474.         {
  475.             heist[21].Check = ElectionDay.Checked;
  476.         }
  477.  
  478.         private void FramingFrame_CheckedChanged(object sender, EventArgs e)
  479.         {
  480.             heist[22].Check = FramingFrame.Checked;
  481.         }
  482.         //Vlad
  483.         private void FourStores_CheckedChanged(object sender, EventArgs e)
  484.         {
  485.             heist[23].Check = FourStores.Checked;
  486.         }
  487.  
  488.         private void Mallcrasher_CheckedChanged(object sender, EventArgs e)
  489.         {
  490.             heist[24].Check = Mallcrasher.Checked;
  491.         }
  492.  
  493.         private void Nightclub_CheckedChanged(object sender, EventArgs e)
  494.         {
  495.             heist[25].Check = Nightclub.Checked;
  496.         }
  497.  
  498.         private void UkrainianJob_CheckedChanged(object sender, EventArgs e)
  499.         {
  500.             heist[26].Check = UkrainianJob.Checked;
  501.         }
  502.        
  503.         ////////////////////////////////////////ONLY ALLOW DIGITS////////////////////////////////////////
  504.         private void textBox_Stealth_KeyPress(object sender, KeyPressEventArgs e)
  505.         {
  506.             if (!Char.IsDigit(e.KeyChar) && e.KeyChar != 8)
  507.                 e.Handled = true;
  508.         }
  509.  
  510.         private void textBox_Pay_KeyPress(object sender, KeyPressEventArgs e)
  511.         {
  512.             if (!Char.IsDigit(e.KeyChar) && e.KeyChar != 8)
  513.                 e.Handled = true;
  514.         }
  515.  
  516.         private void textBox_EXP_KeyPress(object sender, KeyPressEventArgs e)
  517.         {
  518.             if (!Char.IsDigit(e.KeyChar) && e.KeyChar != 8)
  519.                 e.Handled = true;
  520.         }
  521.     }
  522. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement