void LearnSuccess() { sqlConnection sql = new sqlConnection(); sql.Learned(Data.id[0]); sql.Learned(Data.id[1]); sql.Learned(Data.id[2]); sql.Learned(Data.id[3]); sql.Learned(Data.id[4]); }
private void btKnow_Click(object sender, EventArgs e) { sql.Learned(id[k]); if (k < 10) { k++; } else { pnCheck.Visible = false; } if (Eng.Count > 0) { btFlashCard2.Text = Eng[k]; pbImage.Image = null; pbImage.LoadAsync(LinkPic[k]); btFlip2.Text = Eng[k]; } }