/// <summary> /// 設定値の取得 /// </summary> /// <param name="setInfo"></param> public CustomEpgTabInfo GetSetting() { info.TabName = textBox_tabName.IsEnabled == true ? textBox_tabName.Text : info.TabName; info.IsVisible = checkBox_isVisible.IsEnabled == true ? checkBox_isVisible.IsChecked == true : info.IsVisible; info.ViewMode = viewModeRadioBtns.Value; info.SearchKey = searchKey.DeepClone(); info.SearchKey.serviceList.Clear();//不要なので削除 info.ViewServiceList = listBox_serviceView.Items.OfType <ServiceViewItem>().Select(item => item.Key).ToList(); info.ViewContentList = listBox_jyanruView.Items.OfType <ContentKindInfo>().Select(item => item.Data).DeepClone(); return(info.DeepClone()); }
/// <summary> /// 設定値の取得 /// </summary> /// <param name="setInfo"></param> public CustomEpgTabInfo GetSetting() { info.TabName = textBox_tabName.IsEnabled == true ? textBox_tabName.Text : info.TabName; info.IsVisible = checkBox_isVisible.IsEnabled == true ? checkBox_isVisible.IsChecked == true : info.IsVisible; info.ViewMode = viewModeRadioBtns.Value; info.NeedTimeOnlyBasic = (checkBox_noTimeView_rate.IsChecked == true); info.NeedTimeOnlyWeek = (checkBox_noTimeView_week.IsChecked == true); info.StartTimeWeek = comboBox_timeH_week.SelectedIndex; info.SearchMode = (checkBox_searchMode.IsChecked == true); info.SearchGenreNoSyncView = (checkBox_searchServiceFromView.IsChecked == true); info.FilterEnded = (checkBox_filterEnded.IsChecked == true); info.SearchKey = searchKey.DeepClone(); info.SearchKey.serviceList.Clear();//不要なので削除 info.ViewServiceList = listBox_serviceView.Items.OfType <ServiceViewItem>().Select(item => item.Key).ToList(); info.ViewContentList = listBox_jyanruView.Items.OfType <ContentKindInfo>().Select(item => item.Data).DeepClone(); info.ViewNotContentFlag = checkBox_notContent.IsChecked == true; return(info.DeepClone()); }
/// <summary>設定値の取得</summary> public CustomEpgTabInfo GetSetting() { info.TabName = textBox_tabName.IsEnabled == true ? textBox_tabName.Text : info.TabName; info.IsVisible = checkBox_isVisible.IsEnabled == true ? checkBox_isVisible.IsChecked == true : info.IsVisible; if (cmb_design.SelectedIndex >= 0) { info.EpgSettingIndex = cmb_design.SelectedIndex; info.EpgSettingID = (int)cmb_design.SelectedValue; } info.RecSetting = ((RecPresetItem)cmb_recSetting.SelectedItem).Data; if (info.RecSetting.EqualsSettingTo(Settings.Instance.RecPresetList[0].Data)) { info.RecSetting = null; } info.SearchKey = searchKey.DeepClone(); info.SearchKey.serviceList.Clear();//不要なので削除 info.ViewServiceList = listBox_serviceView.Items.OfType <ServiceViewItem>().Select(item => item.Key).ToList(); info.ViewContentList = listBox_jyanruView.Items.OfType <ContentKindInfo>().Select(item => item.Data).DeepClone(); return(info.DeepClone()); }
public void SetSearchKey(EpgSearchKeyInfo key) { if (key == null) { return; } //"登録時"を追加する。既存があれば追加前に削除する。検索ダイアログの上下ボタンの移動用のコード。 comboBox_preSet.Items.Remove(preEdit.FindPreset(SearchPresetItem.CustomID)); comboBox_preSet.Items.Add(new SearchPresetItem("登録時", SearchPresetItem.CustomID, key.DeepClone())); loadingSetting = true; comboBox_preSet.SelectedIndex = comboBox_preSet.Items.Count - 1; }