Esempio n. 1
0
        void ManageLibrary_PlaylistContentChanged(object sender, GMBEventArgs e)
        {
            GlobalVars.TblAdp_Pl = new GMBAudioLibDataSetTableAdapters.PLAYLISTSTableAdapter();
            GlobalVars.DtaTbl_Pl = GlobalVars.TblAdp_Pl.GetData();
            GlobalVars.TblAdp_Pl.Fill(GlobalVars.DtaTbl_Pl);
            DataView dataView = GlobalVars.DtaTbl_Pl.DefaultView;

            GMBAudioLibDataSetTableAdapters.SongsInPlaylistTableAdapter TblAdp_SongsInPl = new GMBAudioLibDataSetTableAdapters.SongsInPlaylistTableAdapter();
            GMBAudioLibDataSet.SongsInPlaylistDataTable SongsInCurrentPl = TblAdp_SongsInPl.GetSongsInPlaylist(GlobalVars.CurrentPlaylist);

            GlobalVars.SongsInCurrentPl = SongsInCurrentPl;
            GlobalVars.TblAdp_SongsInPl = TblAdp_SongsInPl;
            LstBox_Pl.ItemsSource       = null;
            LstBox_Pl.ItemsSource       = dataView;
        }
        void ManageLibrary_PlaylistContentChanged(object sender, GMBEventArgs e)
        {
            GlobalVars.TblAdp_Pl = new GMBAudioLibDataSetTableAdapters.PLAYLISTSTableAdapter();
            GlobalVars.DtaTbl_Pl = GlobalVars.TblAdp_Pl.GetData();
            GlobalVars.TblAdp_Pl.Fill(GlobalVars.DtaTbl_Pl);
            DataView dataView = GlobalVars.DtaTbl_Pl.DefaultView;
            GMBAudioLibDataSetTableAdapters.SongsInPlaylistTableAdapter TblAdp_SongsInPl = new GMBAudioLibDataSetTableAdapters.SongsInPlaylistTableAdapter();
            GMBAudioLibDataSet.SongsInPlaylistDataTable SongsInCurrentPl = TblAdp_SongsInPl.GetSongsInPlaylist(GlobalVars.CurrentPlaylist);

            GlobalVars.SongsInCurrentPl = SongsInCurrentPl;
            GlobalVars.TblAdp_SongsInPl = TblAdp_SongsInPl;
            LstBox_Pl.ItemsSource = null;
            LstBox_Pl.ItemsSource = dataView;
        }