/// <summary> /// Attach the 'Model' and the 'View' to this presenter. /// </summary> /// <param name="model">The model to use</param> /// <param name="view">The view object</param> /// <param name="explorerPresenter">The explorer presenter used</param> public void Attach(object model, object view, ExplorerPresenter explorerPresenter) { this.memoModel = model as Memo; this.memoViewer = view as MemoView; this.explorerPresenter = explorerPresenter; this.memoViewer.MemoText = this.memoModel.MemoText; }
public void MemoClick(object parameter) { MemoView MV = new MemoView(); MV.ShowDialog(); }