Exemplo n.º 1
0
        public MainWindowViewModel()
        {
            // init instance of wmp-player from wmp.dll
            PlayerEngineModel playerEngine = new PlayerEngineModel(false,false);

            // init view-models taking wmp-player as argument
            Player = new PlayerEngineViewModel(playerEngine);
            CurrentSong = new CurrentSongViewModel(playerEngine);
            Playlist = new PlaylistViewModel(playerEngine);
            Navigation = new Server.ServerNavigationViewModel();
            Servers = new ConnectionLibrary();

            // undo/redo
            CommandLib = new CommandLibrary();

            Player.Volume = 80;

            _this = this;
        }
Exemplo n.º 2
0
 public SkipCommand(CurrentSongViewModel vm)
 {
     _vm = vm;
 }
Exemplo n.º 3
0
 public PauseCommand(CurrentSongViewModel vm)
 {
     _vm = vm;
 }
Exemplo n.º 4
0
 public PrevCommand(CurrentSongViewModel vm)
 {
     _vm = vm;
 }
 public CurrentSongView()
 {
     InitializeComponent();
     DataContext = new CurrentSongViewModel();
 }