Пример #1
0
 public MyWord(NewWordTemplate tmp)
 {
     parentWordEntity = ViewModel.generalEntity.Data.Create();
     ViewModel.generalEntity.Data.Add(parentWordEntity);
     this.Word = tmp.Word;
     this.Translate = tmp.Translate;
     this.Example = tmp.Example;
     Complexity = 2;
     RandomNumber = 1;
     IsRightAnswer = true;
     IsChanged = false;
     IsEasy = false;
     IsAnswered = false;
 }
Пример #2
0
 void SetRandomNumber(Datum dt, Random r)
 {
     dt.RandomNumber = r.Next();
 }