public WordPresenter(IMyVocabularyDomainModel domainModel, IWordView wordView) { // save references on model and view Model = domainModel; View = wordView; // subscribe to the events of view View.Loaded += OnLoaded; }
public SuperTestPresenter(IMyVocabularyDomainModel domainModel, ISuperTestView superTestView) { // save references on model and view Model = domainModel; View = superTestView; // subscribe to the events of view View.ChooseNeededWords += GetWords; View.StartTest += OnStartTest; View.Answer += OnAnswer; View.Next += OnNext; View.Loaded += OnLoaded; }
public TestWithKnownWordsPresenter(IMyVocabularyDomainModel domainModel, ITestWithKnownWordsView testWithKnownWordsView) { // save references on model and view Model = domainModel; View = testWithKnownWordsView; // subscribe to the events of view View.Loaded += OnLoaded; View.ChooseEnglishWord += OnChooseEnglishWord; View.ShowRussianWord += OnShowRussianWord; View.ChooseNeededWords += GetWords; View.CorrectAnswer += MakeWordKnown; }
public TestPresenter(IMyVocabularyDomainModel domainModel, ITestView testView) { // save references on model and view Model = domainModel; View = testView; // subscribe to the events of view View.Loaded += OnLoaded; View.ChooseEnglishWord += OnChooseEnglishWord; View.ShowRussianWord += OnShowRussianWord; View.ChooseRussianWord += OnChooseRussianWord; View.ShowEnglishWord += OnShowEnglishWord; View.ChooseNeededWords += GetWords; }
public MainPresenter(IMyVocabularyDomainModel domainModel, IMainView mainView) { // save references on model and view Model = domainModel; View = mainView; // subscribe to the events of view View.Loaded += OnLoaded; View.Add += OnAdd; View.Edit += OnEdit; View.Delete += OnDelete; View.Translate += OnTranslate; View.OpenTestForm += OnOpenTestForm; View.OpenSuperTestForm += OnOpenSuperTestForm; View.AddWordTo += AddWordTo; View.OpenTestWithKnownWordsForm += OnOpenTestWithKnownWordsForm; }