title: C# Bowling Game Calculation Issue
body: <p>I have problem with my C# Bowling game and I would appericate some help I'll try to explain the code as well as i can. I've been trying to solve this issue for a long time and no success yet.</p>
  
  <p>The calculation works fine but the only problem is my strike, the strike should count 10 + the next 2 coming throws.</p>
  
  <p>So what my program does:</p>
  
  <p>if you get a strike the first value will be set to 10, then I enter another strike and value is set to 21 but should be 20. The second box should then have a value of 30.    </p>
  
  <p>So first I have 3 arrays to hold all the textboxes</p>
  
  <pre><code>    summa = new TextBox[] { textBox14, textBox15, textBox16, textBox17, textBox18, textBox19 };
      slag1 = new TextBox[] { textBox1, textBox3, textBox5, textBox7, textBox9, textBox11 };
      slag2 = new TextBox[] { textBox2, textBox4, textBox6, textBox8, textBox10, textBox12 };
  </code></pre>
  
  <p>So I have 2 methods, <code>Slag1()</code> and <code>Slag2()</code> the strike runs in the <code>Slag1()</code> method.</p>
  
  <p>This is the part i use for the calculation of the strike</p>
  
  <pre><code>if (strike == true)
          {
              GotStrike[omgang] = true;
          }
          //strike = false;
  
          //Kollar ifall textbox är lika med 10
          if (slag1[omgang].Text == "10")
          {
              //Om text box är lika med 10 ändra värdet till X
              //Lägg till 10 poäng på total
              //Skriv ut värdet på summa (textbox)
              Arbetar = true;
              slag1[omgang].Text = "X";
              total += 9;
              summa[omgang].Text = total.ToString();
              omgang++;
              if (omgang == 6)
              {
                  omgang--;
              }
              strike = true;
          }
          else if (slag1[omgang].Text == "X")
          {
              return;
          }
          else
          {
              checkSlag1 = Convert.ToInt32(slag1[omgang].Text);
              total += checkSlag1;
              summa[omgang].Text = total.ToString();
  
              if (strike == true)
              {
                  if (omgang != 0)
                  {
                      total += 10;
                      slag1[omgang - 1].Text = total.ToString();
                      if (omgang != 1)
                      {
                          slag1[omgang - 2].Text = total.ToString();
                      }
                      else
                      {
  
                      }
                  }
                  else
                  {
  
                  }
              }
          }
      }
  </code></pre>
  
  <p>It's kinda hard to explain but I hope you understand, please tell me if you don't understand so I'll write a better explanation.</p>
  
  <p>I hope you know how a bowling game works, a strike = the first strike and the value of the next 2 coming strikes. So if i hit a strike i get the value of 10, strike 2 value of 10 and strike 3 value of 10. That's the total of index 0. </p>