Ejemplo n.º 1
0
 private void buttonWrong_Click(object sender, EventArgs e)
 {
     if (this.labelEnglish.Text != string.Empty)
     {
         this.ShowNextWord();
         this.preSelect           = RememberStatus.Invaild;
         this.buttonWrong.Visible = false;
         this.buttonRight.Visible = false;
     }
 }
Ejemplo n.º 2
0
 private void buttonUnknown_Click(object sender, EventArgs e)
 {
     if (this.labelChinese.Text != string.Empty)
     {
         this.preSelect           = RememberStatus.Unknown;
         this.labelEnglish.Text   = word.English;
         this.buttonWrong.Visible = false;
         this.buttonRight.Visible = false;
         this.buttonNext.Visible  = true;
         this.Refresh();
     }
 }
Ejemplo n.º 3
0
        private void buttonRight_Click(object sender, EventArgs e)
        {
            if (this.labelEnglish.Text != string.Empty)
            {
                switch (preSelect)
                {
                case RememberStatus.Unknown:
                    word.Next          = DateTime.Now.AddDays(6);
                    this.training.Edit = true;
                    break;

                case RememberStatus.Vague:
                    word.Next          = DateTime.Now.AddDays(6);
                    this.training.Edit = true;
                    break;

                case RememberStatus.Known:
                    if (word.Know.Date == (new DateTime()).Date)
                    {
                        word.Know = DateTime.Now;
                        word.Next = DateTime.Now.AddDays(31);
                    }
                    else
                    {
                        word.Confirm = DateTime.Now;
                        word.Next    = DateTime.Now.AddDays(62);
                    }
                    this.training.Edit = true;
                    break;

                default:
                    break;
                }

                this.ShowNextWord();
                this.preSelect           = RememberStatus.Invaild;
                this.buttonWrong.Visible = false;
                this.buttonRight.Visible = false;
            }
        }
Ejemplo n.º 4
0
 private void buttonNext_Click(object sender, EventArgs e)
 {
     this.ShowNextWord();
     this.preSelect          = RememberStatus.Invaild;
     this.buttonNext.Visible = false;
 }