Esempio 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);
 }
        void EnterPastedWordsToBase()
        {
            if (ListWordsFromClipboard == null)
                return;
            foreach (NewWordTemplate wrdTemplate in ListWordsFromClipboard) {
                MyWord wrd = new MyWord(wrdTemplate);
            }
            ListWordsFromClipboard.Clear();
            GlobalSaveChanges();

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

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

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