hqu666 / M3UPlayer

0 stars 0 forks source link

プレイリストコンボのアイテム削除 #12

Closed hqu666 closed 2 years ago

hqu666 commented 2 years ago

PlayListComboItemDelete MainWindow.PlayListComboItemDelete_Click()

hqu666 commented 2 years ago

PlayListStrにセパレターが無い

CurrentPlayListFileNameが "P:\DL\202202_57.m3u8P:\202202_14.m3u8P:\2013.m3uP:\DL\1219202012_25のコピー.m3u8P:\202012_27.m3u8"

                Regex reg = new Regex(".m3u");
                PlayListStr = reg.Replace(PlayListStr, ".m3u,");
                reg = new Regex(".m3u,8");
                PlayListStr = reg.Replace(PlayListStr, ".m3u8,");
                reg = new Regex(",,");
                PlayListStr = reg.Replace(PlayListStr, ",");
                PlayListStr = PlayListStr.Remove(PlayListStr.Length - 1);
                PlayLists = PlayListStr.Split(',');

でセパレータの入れ直し

hqu666 commented 2 years ago

即時更新

hqu666 commented 2 years ago

初期値でComboLastItemKey:が選択されている

コンテキストメニューを出したアイテムが取得できていない

起動時:Properties.Settings.Default.CurrentPlayListFileName の呼び出し Initialize>>AddPlayListCombo()で