Esempio n. 1
0
 private void lvWrongWord_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e)
 {
     curFlashCard = ManageSystem.SearchFlashCardEng(e.Item.SubItems[1].Text);
     if (curFlashCard != null)
     {
         ChangeFlashCard(curFlashCard.Eng, curFlashCard.IdCard);
     }
 }
Esempio n. 2
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            FlashCard fl = ManageSystem.SearchFlashCardEng(txtSearching.Text);

            if (fl != null)
            {
                index = fl.IdCard;
            }
            else
            {
                fl = ManageSystem.SearchFlashCardVie(txtSearching.Text);
                if (fl != null)
                {
                    index = fl.IdCard;
                }
                else
                {
                    return;
                }
            }
            curFlashCard = ManageSystem.GetFlashCard(index);
            ChangeFlashCard(curFlashCard.Eng, curFlashCard.IdCard);
        }