private void button10_Click(object sender, EventArgs e) { if (HandCombination.isTwoPair(new Hand(myHand1))) { MessageBox.Show("This is 2Pair."); } else { MessageBox.Show("Not 2Pair."); } }