private void PrevCard_Click(object sender, EventArgs e) { DeckPosition deckPos = (DeckPosition)Convert.ToInt32((sender as Button).Tag); drill.PrevCard(deckPos); wordTextBox.Text = drill.CurrentWord(); }
public DrillForm(Drill drill) { InitializeComponent(); this.drill = drill; wordTextBox.Text = drill.CurrentWord(); wordTextBox.AutoSize = false; }