Пример #1
0
 public Controller_Preview(Model model, View_Preview view)
 {
     this.model = model;
     this.view = view;
     this.model.CurrentTest.PropertyChanged += PropertyChangedHandler;
     this.view.TestWords = this.model.CurrentTest.CurrentPart.PartWords().ToList();
     this.showView();        
 }
Пример #2
0
 public Controller_Couple(Model model, View_Preview view)
 {
     this.model = model;
     this.view = view;
     this.view.SetController(this);
     this.model.CurrentTest.PropertyChanged += PropertyChangedHandler;
     this.model.CurrentTest.CurrentPart.SetTimer(timer);
     this._testWords = this.model.CurrentTest.CurrentPart.PartWords().ToList();
     this.view.TestWords = getMixedWords(_testWords);
     this.t.Elapsed += delegate { this.reset(); };
     this.view.CanCheck = true;
     this.showView();
 }