コード例 #1
0
ファイル: MainMediaPlayer.cs プロジェクト: punker76/Maple
        public MainMediaPlayer(ViewModelServiceContainer container, IMediaPlayer player, IValidator <MediaPlayer> validator, AudioDevices devices, Playlist playlist, Data.MediaPlayer model)
            : base(container, player, validator, devices, playlist, model)
        {
            IsPrimary = model.IsPrimary;

            _manager.PropertyChanged += (o, e) =>
            {
                if (e.PropertyName == nameof(ILocalizationService.CurrentLanguage))
                {
                    UpdateName();
                }
            };

            UpdateName();
        }
コード例 #2
0
 public MediaPlayer Get(Data.MediaPlayer player, Playlist playlist)
 {
     return(new MediaPlayer(_container, _mediaPlayer, _validator, _devices, playlist, player));
 }
コード例 #3
0
 public MediaPlayer Get(Data.MediaPlayer model)
 {
     throw new NotImplementedException(); // by design
 }
コード例 #4
0
 public Core.MediaPlayer GetCore(Data.MediaPlayer model)
 {
     return(_mapper.Map <Data.MediaPlayer, Core.MediaPlayer>(model));
 }
コード例 #5
0
 public MediaPlayer Get(Data.MediaPlayer model)
 {
     return(new MediaPlayer(_translationService, _mediaPlayer, _validator, _devices, null, model)); //TODO
 }
コード例 #6
0
 public MediaPlayer Get(Data.MediaPlayer player, Playlist playlist)
 {
     return(new MediaPlayer(_translationService, _mediaPlayer, _validator, _devices, playlist, player));
 }