void loadCards(dsLanguageDB.CardDataTable dtCards, bool resetRange) { _dtCurCards = dtCards; if(resetRange) setRange(0, _dtCurCards.Count); if (_dtCurCards.Count > 0) { grpBoxPracticeCards.Enabled = true; } else { grpBoxPracticeCards.Enabled = false; } tryToHideDesiredCards(); playList.LoadPlaylist(_dtCurCards); loadRandomCard(); }
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(); } }