Exemple #1
0
        private void PawnButtonClick(object sender, EventArgs e)
        {
            PawnItem pawn = null;

            if (pawn != null)
            {
                pawn.Activate();
            }
            else
            {
                pawn = new PawnItem();
                pawn.Show();
            }
        }
Exemple #2
0
 private void PawnButtonClick(object sender, EventArgs e)
 {
     PawnItem pawn = null;
     if (pawn != null)
     {
         pawn.Activate();
     }
     else
     {
         pawn = new PawnItem();
         pawn.Show();
     }
 }