コード例 #1
0
ファイル: MemoryWrite.cs プロジェクト: csblnc/learningen
 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;
 }
コード例 #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--;
         }
     }
 }
コード例 #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--;
         }
     }
 }