private void loadCard(dsLanguageDB.CardRow card) { if (!grpBoxPracticeCards.Enabled) { grpBoxPracticeCards.Enabled = true; } txtAnswer.Text = string.Empty; _answerWasShown = false; //if the current card is not already loaded if (_curCardRow != card) { _curCardRow = card; loadCurSoundFile(); if (playSoundOnLoadToolStripMenuItem.Checked) { _dictaphone.StartPlay(); } else if (playSoundBeforeCardLoadsToolStripMenuItem.Checked) { PlaySoundWithCallBack(displayCard); return; } displayCard(); } }
void clearCard() { _curCardRow = null; _curSoundFileRow = null; txtAnswer.Text = string.Empty; txtExample.Text = string.Empty; txtQuestion.Text = string.Empty; chkBoxCardIsEasy.Checked = false; _dictaphone.WavStream = null; setCardEdit(Color.White); }