Exemplo n.º 1
0
 public static void Write(MyWord wrd,bool IsRight)
 {
     Log lg = ViewModel.generalEntity.Logs.Create();
       lg.DTime = DateTime.Now;
       lg.Datum = wrd.parentWordEntity;
       lg.Result = IsRight.ToString();
      // lg.Message = st;
       ViewModel.generalEntity.Logs.Add(lg);
       WriteToFile(lg);
 }
Exemplo n.º 2
0
        void EnterPastedWordsToBase()
        {
            if (ListWordsFromClipboard == null)
                return;
            foreach (NewWordTemplate wrdTemplate in ListWordsFromClipboard) {
                MyWord wrd = new MyWord(wrdTemplate);
            }
            ListWordsFromClipboard.Clear();
            GlobalSaveChanges();

            // StartWork();
            UpdateAllData();
        }
Exemplo n.º 3
0
        public void GoToStat(MyWord _word)
        {
            bool isRight = _word.IsRightAnswer;

            if (isRight)
                AnswerRight++;
            else
                AnswerWrong++;

            if (_word.IsAnswered)
                CompleteToday++;
        }
Exemplo n.º 4
0
 void EnterNewWord()
 {
     MyWord wrd = new MyWord(NewWordToEnter);
     ListAllWords.Add(wrd);
     ListWordsForWork.Add(wrd);
     CurrentWordForAllWordsGrid = wrd;
     NewWordToEnter = new NewWordTemplate();
 }