public static PromotionPiece ShowPawnPromotionDialog(IWin32Window owner)
 {
     PawnPromotionDialog promotionDlg = new PawnPromotionDialog();
       promotionDlg.ShowDialog(owner);
       PromotionPiece result = promotionDlg.m_promotionPiece;
       promotionDlg.Dispose();
       return result;
 }
        public static PromotionPiece ShowPawnPromotionDialog(IWin32Window owner)
        {
            PawnPromotionDialog promotionDlg = new PawnPromotionDialog();

            promotionDlg.ShowDialog(owner);
            PromotionPiece result = promotionDlg.m_promotionPiece;

            promotionDlg.Dispose();
            return(result);
        }