Exemplo n.º 1
0
 private void TsmGrasp_Click(object sender, EventArgs e)
 {
     //WordDataHelper.AddWordData(currentlabel.Text, 0);
     WordDataHelper.AutoAddProgress(currentlabel.Text);
     currentlabel.ForeColor = SetColor(currentlabel.Text);
     currentlabel.BackColor = SystemColors.Control;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 标记为会,并从列表中删除
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void TsmGrasp_Click(object sender, EventArgs e)
 {
     WordDataHelper.AutoAddProgress(LbxWord.SelectedItem.ToString());
     for (int i = 0; i < LbxWord.Items.Count; i++)
     {
         if (LbxWord.GetSelected(i))
         {
             LbxWord.Items.RemoveAt(i);
             transList.RemoveAt(i);
             i--;
         }
     }
 }
Exemplo n.º 3
0
 private void BtnCool_Click(object sender, EventArgs e)
 {
     for (int i = 0; i < LbxWord.SelectedItems.Count; i++)
     {
         for (int j = 0; j < 10; j++)
         {
             WordDataHelper.AddWordData(LbxWord.SelectedItems[i].ToString(), 0);
             WordDataHelper.AutoAddProgress(LbxWord.SelectedItems[i].ToString());
         }
     }
     for (int i = 0; i < LbxWord.Items.Count; i++)
     {
         if (LbxWord.GetSelected(i))
         {
             LbxWord.Items.RemoveAt(i);
             transList.RemoveAt(i);
             i--;
         }
     }
 }