public void refreshHand(Hand h)
 {
     if (tblHand.InvokeRequired)
     {
         refreshHandDelegate r = new refreshHandDelegate(refreshHand);
         this.Invoke(r, new object[] { h });
     }
     else
     {
         tblHand.SuspendLayout();
         int i = 0;
         foreach (Stone s in h.getStones())
         {
             ((Button)tblHand.GetControlFromPosition(i, 0)).Text    = s.letter + "(" + s.value + ")";
             ((Button)tblHand.GetControlFromPosition(i, 0)).Enabled = true;
             i++;
         }
         while (i < 7)
         {
             ((Button)tblHand.GetControlFromPosition(i, 0)).Enabled = false;
             ((Button)tblHand.GetControlFromPosition(i, 0)).Text    = "";
             i++;
         }
         hand = h;
     }
 }
 public void refreshHand(Hand h)
 {
     if (tblHand.InvokeRequired)
     {
         refreshHandDelegate r = new refreshHandDelegate(refreshHand);
         this.Invoke(r, new object[] { h });
     }
     else
     {
         tblHand.SuspendLayout();
         int i = 0;
         foreach (Stone s in h.getStones())
         {
             ((Button)tblHand.GetControlFromPosition(i, 0)).Text = s.letter + "(" + s.value + ")";
             ((Button)tblHand.GetControlFromPosition(i, 0)).Enabled = true;
             i++;
         }
         while (i < 7)
         {
             ((Button)tblHand.GetControlFromPosition(i, 0)).Enabled = false;
             ((Button)tblHand.GetControlFromPosition(i, 0)).Text = "";
             i++;
         }
         hand = h;
     }
 }