public frm_RockList(IJSONModificationService rockList) { InitializeComponent(); this.messageService = new MessageServiceImpl(); this.controller = new RockListController(rockList, this.messageService, this, new ContentEditorViewModel(new RockContent())); controller.Initialise(); }
public RockListController(IJSONModificationService fileService, IMessageService messageService, IRockListView view, ContentEditorViewModel viewModel) { if (fileService == null) { throw new ArgumentNullException("fileService"); } this.fileService = fileService; this.messageService = messageService; this.view = view; this.contentEditorViewModel = viewModel; }