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; }
public SkipCommand(CurrentSongViewModel vm) { _vm = vm; }
public PauseCommand(CurrentSongViewModel vm) { _vm = vm; }
public PrevCommand(CurrentSongViewModel vm) { _vm = vm; }
public CurrentSongView() { InitializeComponent(); DataContext = new CurrentSongViewModel(); }