Example #1
0
        /// <summary>
        /// Creates the ViewModels.
        /// </summary>
        /// <param name="windowManager">WindowManager used to display dialogs.</param>
        /// <param name="userAPI">Last.fm user API.</param>
        private void CreateViewModels(IExtendedWindowManager windowManager, IUserApi userAPI)
        {
            var pasteYourTasteVM = new PasteYourTasteViewModel();

            pasteYourTasteVM.StatusUpdated += VM_StatusUpdated;;
            var csvDownloaderVM = new CSVDownloaderViewModel(windowManager);

            csvDownloaderVM.StatusUpdated += VM_StatusUpdated;
            var collageCreatorVM = new CollageCreatorViewModel(windowManager, userAPI);

            collageCreatorVM.StatusUpdated += VM_StatusUpdated;

            ActivateItem(pasteYourTasteVM);
            ActivateItem(csvDownloaderVM);
            ActivateItem(collageCreatorVM);

            // should be selected
            ActivateItem(pasteYourTasteVM);
        }
Example #2
0
        /// <summary>
        /// Creates the ViewModels.
        /// </summary>
        private void CreateViewModels()
        {
            var pasteYourTasteVM = new PasteYourTasteViewModel();

            pasteYourTasteVM.StatusUpdated += VM_StatusUpdated;;
            var csvDownloaderVM = new CSVDownloaderViewModel();

            csvDownloaderVM.StatusUpdated += VM_StatusUpdated;
            var collageCreatorVM = new CollageCreatorViewModel();

            collageCreatorVM.StatusUpdated += VM_StatusUpdated;

            ActivateItem(pasteYourTasteVM);
            ActivateItem(csvDownloaderVM);
            ActivateItem(collageCreatorVM);

            // should be selected
            ActivateItem(pasteYourTasteVM);
        }