Esempio n. 1
0
        public Controller(ISerialsSearch serialsSearch, DownLoadManagerModel downLoadManagerModel, ISubscribeManager subscribeManager, IListFileParser listFileParser)
        {
            SerialsSearch = serialsSearch;
            DownLoadManagerModel = downLoadManagerModel;
            SubscribeManager = subscribeManager;
            saver = new Saver((SubscribeManager)subscribeManager);
            SubscribeManager.SerialModelsCollection = saver.Load(listFileParser);

            this.listFileParser = listFileParser;
              Application.Current.MainWindow.Closed += MainWindow_Closed;
        }
#pragma warning restore 649

        public SearchControllViewModel(ISerialsSearch serialsSearch)
        {
            this.serialsSearch = serialsSearch;
            serialsSearch.UpdateComplate += serialsSearch_UpdateComplate;
        }