Exemple #1
0
 /// <summary
 ///     Checks if OnAceDrawn is null, if not sends it
 /// </summary>
 private void OnAceDrawn(DrawCardEventArgscs e)
 {
     if (AceDrawn != null)
     {
         AceDrawn(this, e);
     }
 }
Exemple #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);
 }
Exemple #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);
 }