예제 #1
0
        private void PopulateInfo(MyMusicStage myMusicStage)
        {
            VGMStreamPlayer.StopCurrentVGMStreamPlayback();
            _CurrentMyMusicStage         = myMusicStage;
            _CurrentMyMusicStageOriginal = SoundEntryCollectionBackup.MyMusicStagesPerID[myMusicStage.MyMusicStageID];
            if (myMusicStage.BGMStage.BGMDBID != null)
            {
                _CurrentSoundDBStage               = SoundEntryCollection.SoundDBStagesPerID[(int)(myMusicStage.BGMStage.BGMDBID)];
                _CurrentSoundDBStageOriginal       = SoundEntryCollectionBackup.SoundDBStagesPerID[(int)(myMusicStage.BGMStage.BGMDBID)];
                _ListSoundDB.Enabled               = true;
                btnRestoreSoundDBStageList.Visible = true;
            }
            else
            {
                _CurrentSoundDBStage               = null;
                _CurrentSoundDBStageOriginal       = null;
                _ListSoundDB.Enabled               = false;
                btnRestoreSoundDBStageList.Visible = false;
            }

            lblMyMusicIDValue.Text = myMusicStage.MyMusicStageID.ToString();
            lblSoundDBIDValue.Text = myMusicStage.BGMStage.BGMDBID.ToString();

            _ListMyMusic.Items = myMusicStage.BGMs;
            if (_CurrentSoundDBStage != null)
            {
                _ListSoundDB.Items = _CurrentSoundDBStage.SoundEntries;
            }
            else
            {
                _ListSoundDB.Items = null;
            }
        }
예제 #2
0
        private void listEntries_ItemSelected(object sender, EventHandlers.ListEntryArgs e)
        {
            MyMusicStage myMusicStage = e.ListEntry as MyMusicStage;

            if (myMusicStage != null)
            {
                PopulateInfo(myMusicStage);
            }
        }