Exemplo n.º 1
0
 /// <summary
 ///     Checks if OnAceDrawn is null, if not sends it
 /// </summary>
 private void OnAceDrawn(DrawCardEventArgscs e)
 {
     if (AceDrawn != null)
     {
         AceDrawn(this, e);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates instance of DrawCardEventArgscs and send the card with it, also sets it.
 /// </summary>
 public void GetAceSuit(Card card)
 {
     DrawCardEventArgscs drawCEA = new DrawCardEventArgscs(card);
     OnAceDrawn(drawCEA);
 }
Exemplo n.º 3
0
 /// <summary
 ///     On ace drawn, adds the ace into the listbox
 /// </summary>
 private void OnAceDraw(object sender, DrawCardEventArgscs e)
 {
     acesListBox.Items.Add(e.aCard.Suit);
 }