/// <summary> /// The Card_Click method. /// Click even for card buttons. /// This has to be here as we have added the buttons dynamically, and we need to define their click functionality. /// </summary> /// <param name="sender">object sender</param> /// <param name="e">EventArgs</param> private void Card_Click(object sender, EventArgs e) { Button card = (Button)sender; //Get the button we are on. Drafter Draft = new Drafter(); Draft.Select(card); }
/// <summary> /// The tsbRandom_Click method. /// Method for clicking the Random Pick button. /// </summary> /// <param name="pnlTable">The panel on the calling form the card buttons will be added to.</param> /// <param name="sender">object sender</param> /// <param name="e">EventArgs</param> private void tsbRandom_Click(object sender, EventArgs e) { Drafter Drafter = new Drafter(); Drafter.Random(Booster); }