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; }
void SetRandomNumber(Datum dt, Random r) { dt.RandomNumber = r.Next(); }