private void Create() { CreateNewTutorial createWin = new CreateNewTutorial(); if (createWin.ShowDialog() ?? false) { TutorialViewModel tutorialVM = createWin.TutorialVM; if (Repository.SaveTutorial(tutorialVM.tutorial)) { this.ObsTutorials.Add(tutorialVM); } } }
public void OnCreateClicked() { //model Collection collectionModel = this.model; //view CreateNewTutorial create = new CreateNewTutorial(); //presenter CreateViewPresenter presenter = new CreateViewPresenter(this, create, collectionModel); create.ShowDialog(); }