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

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

            promotionDlg.Dispose();
            return(result);
        }
Example #3
0
 private void HandleBlackPawnPromotedEvent(object sender, PromotionEventArgs e)
 {
     e.PromotionPiece = PawnPromotionDialog.ShowPawnPromotionDialog(this);
 }