Пример #1
0
 public frm_RockList(IJSONModificationService rockList)
 {
     InitializeComponent();
     this.messageService = new MessageServiceImpl();
     this.controller     = new RockListController(rockList, this.messageService, this, new ContentEditorViewModel(new RockContent()));
     controller.Initialise();
 }
Пример #2
0
        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;
        }