public NuspecPresenter(INuspecView view, NuspecFile file) { _view = view; _file = file; view.ShowPath(file.Path); view.ShowReleaseNotes(file.ReleaseNotes); Messenger.Register<string>(MessageNames.ReplaceAll, Replace); Messenger.Register<string>(MessageNames.PrefixAll, Prefix); Messenger.Register<string>(MessageNames.SuffixAll, Suffix); Messenger.Register(MessageNames.SaveChangedNotes, Save); Messenger.Register(MessageNames.SaveChangedNotes, () => _view.ShowChangedLabel(false)); }
public NuspecView(NuspecFile file) { InitializeComponent(); _presenter = new NuspecPresenter(this, file); }