public MainWindowViewModel(IRegionManager navigationService, INetWorkServices netWorkServices, IdentityService dentityService, PlayPartCore playPart, InteractionRequestsProxy interactionRequestsProxy ) { this._navigationService = navigationService; this._netWorkServices = netWorkServices; this._dentityService = dentityService; this._playPart = playPart; this._interactionRequestsProxy = interactionRequestsProxy; this._playPart.MusicChanged += _playPart_MusicChanged; this._playPart.PlayStateChanged += _playPart_PlayStateChanged; SysListCommand = new DelegateCommand <int?>(SysListCommandImpl); MyMusicCommand = new DelegateCommand <int?>(MyMusicCommandImpl); OpenPlayPanelCommand = new DelegateCommand(OpenPlayPanelCommandExecute); ClearCurrentPlayListCommand = new DelegateCommand(ClearCurrentPlayListCommandImpl); UserPlayListCommand = new DelegateCommand <PlayList>(UserPlayListCommandExecute); NavBackCommand = new DelegateCommand(NavBackCommandExecute); AddPlayListCommand = new DelegateCommand(AddPlayListCommandExecute); NextCommand = new DelegateCommand(NextCommandExecute); PrevCommand = new DelegateCommand(PrevCommandExecute); // InitData(); dentityService.LoginStateChanged += Session_LoginStateChanged; Session_LoginStateChanged(null, dentityService.CurrentUser != null); }
public PlayPartCore(INetWorkServices netWorkServices, IAudioPlayableServices audioPlayableServices, ILoggerFacade logger, IdentityService dentityService, InteractionRequestsProxy interactionRequestsProxy) { this._netWorkServices = netWorkServices; this._audioPlayableServices = audioPlayableServices; this._logger = logger; _dentityService = dentityService; this._interactionRequestsProxy = interactionRequestsProxy; }
public PersonalityRecommendViewModel(INetWorkServices netWorkServices, IRegionManager navigationService, IdentityService dentityService , PlayPartCore playPart, InteractionRequestsProxy interactionRequestsProxy) { this._netWorkServices = netWorkServices; this._navigationService = navigationService; this._dentityService = dentityService; this._playPart = playPart; this._interactionRequestsProxy = interactionRequestsProxy; InitData(); MoreCommand = new DelegateCommand <string>(MoreCommandExecute); RecommendPlayListCommend = new DelegateCommand <PlayList>(RecommendPlayListCommendExecute); PrivateContentCommand = new DelegateCommand <PictureListBoxItem>(PrivateContentCommandExecute); NewMusicCommand = new DelegateCommand <Global.Model.Music>(NewMusicCommandExecute); NewMusicMvCommand = new DelegateCommand <long?>(NewMusicMvCommandExecute); NewMvCommand = new DelegateCommand <Global.Model.Mv>(NewMvCommandExecute); EveryDayMusicRecommendCommand = new DelegateCommand(EveryDayMusicRecommendCommandExecute); BillBoardCommand = new DelegateCommand(BillBoardCommandExecute); PersonalFmCommand = new DelegateCommand(PersonalFmCommandExecute); }