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); }
private void HandleBlackPawnPromotedEvent(object sender, PromotionEventArgs e) { e.PromotionPiece = PawnPromotionDialog.ShowPawnPromotionDialog(this); }