public void InitFavoriteListview(MusicCollection mc) { musicCollection = mc; MyfavoritelistMgr favoritelistMgr = MyfavoritelistMgr.instance(); favorite_playlist.DataContext = favoritelistMgr.MyfavoriteCollection; }
public main_menuControl() { this.InitializeComponent(); IsFavoritePanel = false; arg = new MsgBroker.MsgBrokerMsg(); playCollection = new PlaylistCollection(); myFavoriteMgr = MyfavoritelistMgr.instance(); result_playlist.DataContext = playCollection; favorite_playlist.DataContext = myFavoriteMgr.MyfavoriteCollection; favoritelist_Content.Visibility = Visibility.Hidden; }