Example #1
0
        public static bool ChgGenre(List <EpgSearchKeyInfo> infoList, UIElement owner = null)
        {
            try
            {
                var dlg = new SetSearchPresetWindow(owner);
                dlg.SetSettingMode("まとめてジャンル設定を変更", 0);
                dlg.DataView.SetSearchKey(infoList[0]);

                if (dlg.ShowDialog() == false)
                {
                    return(false);
                }

                EpgSearchKeyInfo setData = dlg.DataView.GetSearchKey();
                infoList.ForEach(info => info.contentList = setData.contentList.DeepClone());
                return(true);
            }
            catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); }
            return(false);
        }