private void buttonIncompInf_Click(object sender, EventArgs e)
        {
            var incInfForm = new IncInformationForm();

            this.Hide();
            incInfForm.ShowDialog();
            // When new form DioalogResult = ok
            this.Show();
        }
 public void CardTest()
 {
     bool result = true;
     IncInformationForm testForm = new IncInformationForm();
     if (testForm.Flop1.Image != testForm.table.flop[0].CardImage)
         result = false;
     if (testForm.Flop2.Image != testForm.table.flop[1].CardImage)
         result = false;
     if (testForm.Flop3.Image != testForm.table.flop[2].CardImage)
         result = false;
     if (testForm.River.Image != testForm.table.river.CardImage)
         result = false;
     if (testForm.Turn.Image != testForm.table.turn.CardImage)
         result = false;
     int i = 0;
     foreach (Dynamic_Games.IncInformation.Player.Player p in testForm.table.players)
     {
         if (testForm.cardIterator[i].Image != p.cards[0].CardImage)
             result = false;
         if (testForm.cardIterator[i + 1].Image != p.cards[1].CardImage)
             result = false;
         i += 2;
     }
     Assert.IsTrue(result);
 }