public SetViewMode ( |
||
mode | ||
Résultat | void |
public static void SendAutoAdd(IBasicPgInfo item, bool NotToggle = false) { try { if (item == null) { return; } var dlg = new SearchWindow(); dlg.SetViewMode(SearchWindow.SearchMode.NewAdd); EpgSearchKeyInfo key = Settings.Instance.DefSearchKey.Clone(); key.andKey = TrimEpgKeyword(item.DataTitle, NotToggle); key.regExpFlag = 0; key.serviceList.Clear(); key.serviceList.Add((Int64)item.Create64Key()); dlg.SetSearchKey(key); if (item is IRecSetttingData) { var item_r = (item as IRecSetttingData); RecPresetItem recPreSet = item_r.RecSettingInfo.LookUpPreset(item_r.IsManual, true); RecSettingData recSet = recPreSet.RecPresetData; if (recPreSet.IsCustom == true && recSet.RecMode == 5) { recSet.RecMode = 1; } dlg.SetRecSetting(recSet); } dlg.Show(); } catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); } }
private void cm_autoadd_Click(object sender, RoutedEventArgs e) { try { if (sender.GetType() != typeof(MenuItem)) { return; } if (listView_event.SelectedItem != null) { SearchItem item = listView_event.SelectedItem as SearchItem; SearchWindow dlg = new SearchWindow(); dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual; dlg.SetViewMode(1); EpgSearchKeyInfo key = new EpgSearchKeyInfo(); if (item.EventInfo.ShortInfo != null) { key.andKey = item.EventInfo.ShortInfo.event_name; } Int64 sidKey = ((Int64)item.EventInfo.original_network_id) << 32 | ((Int64)item.EventInfo.transport_stream_id) << 16 | ((Int64)item.EventInfo.service_id); key.serviceList.Add(sidKey); dlg.SetSearchDefKey(key); dlg.ShowDialog(); } } catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); } }
private void listView_key_MouseDoubleClick(object sender, MouseButtonEventArgs e) { try { if (listView_key.SelectedItem != null) { EpgAutoDataItem info = listView_key.SelectedItem as EpgAutoDataItem; SearchWindow dlg = new SearchWindow(); dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual; dlg.SetViewMode(2); dlg.SetChgAutoAddID(info.EpgAutoAddInfo.dataID); dlg.SetSearchDefKey(info.EpgAutoAddInfo.searchInfo); dlg.SetRecInfoDef(info.EpgAutoAddInfo.recSetting); if (info.EpgAutoAddInfo.DisableSw == 0) { dlg.checkBox_Disable.IsChecked = false; } else { dlg.checkBox_Disable.IsChecked = true; } dlg.ShowDialog(); } } catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); } }
private void button_add_Click(object sender, RoutedEventArgs e) { SearchWindow dlg = new SearchWindow(); dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual; dlg.SetViewMode(1); dlg.ShowDialog(); }
private void button_add_Click(object sender, RoutedEventArgs e) { SearchWindow dlg = new SearchWindow(); dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual; dlg.SetViewMode(1); dlg.ShowDialog(); }
private void listView_key_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (listView_key.SelectedItem != null) { EpgAutoDataItem info = listView_key.SelectedItem as EpgAutoDataItem; SearchWindow dlg = new SearchWindow(); dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual; dlg.SetViewMode(2); dlg.SetChgAutoAddID(info.EpgAutoAddInfo.dataID); dlg.SetSearchDefKey(info.EpgAutoAddInfo.searchInfo); dlg.SetRecInfoDef(info.EpgAutoAddInfo.recSetting); dlg.ShowDialog(); } }
private void button_add_Click(object sender, RoutedEventArgs e) { try { SearchWindow dlg = new SearchWindow(); dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual; dlg.SetViewMode(1); dlg.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); } }
private void button_change_Click(object sender, RoutedEventArgs e) { if (listView_key.SelectedItem != null) { EpgAutoDataItem info = listView_key.SelectedItem as EpgAutoDataItem; SearchWindow dlg = new SearchWindow(); dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual; dlg.SetViewMode(2); dlg.SetChgAutoAddID(info.EpgAutoAddInfo.dataID); dlg.SetSearchDefKey(info.EpgAutoAddInfo.searchInfo); dlg.SetRecInfoDef(info.EpgAutoAddInfo.recSetting); dlg.ShowDialog(); } }
private static bool?OpenEpgAutoAddDialog(EpgAutoAddData Data, SearchWindow.SearchMode mode) { try { var dlg = new SearchWindow(); dlg.SetViewMode(mode); if (Data != null) { dlg.SetAutoAddData(Data); } dlg.Show(); return(true); } catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); } return(null); }
private void autoadd_Click(object sender, RoutedEventArgs e) { if (listView_reserve.SelectedItem != null) { SearchWindow dlg = new SearchWindow(); dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual; dlg.SetViewMode(1); EpgSearchKeyInfo key = new EpgSearchKeyInfo(); ReserveItem item = listView_reserve.SelectedItem as ReserveItem; key.andKey = item.ReserveInfo.Title; Int64 sidKey = ((Int64)item.ReserveInfo.OriginalNetworkID) << 32 | ((Int64)item.ReserveInfo.TransportStreamID) << 16 | ((Int64)item.ReserveInfo.ServiceID); key.serviceList.Add(sidKey); dlg.SetSearchDefKey(key); dlg.ShowDialog(); } }
private void button_change_Click(object sender, RoutedEventArgs e) { try { if (listView_key.SelectedItem != null) { EpgAutoDataItem info = listView_key.SelectedItem as EpgAutoDataItem; SearchWindow dlg = new SearchWindow(); dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual; dlg.SetViewMode(2); dlg.SetChgAutoAddID(info.EpgAutoAddInfo.dataID); dlg.SetSearchDefKey(info.EpgAutoAddInfo.searchInfo); dlg.SetRecInfoDef(info.EpgAutoAddInfo.recSetting); dlg.ShowDialog(); } } catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); } }
private void mc_Research(object sender, ExecutedRoutedEventArgs e) { try { if (listView_result.SelectedItem != null) { SearchItem item = lstCtrl.SelectSingleItem(); EpgSearchKeyInfo defKey = GetSearchKey(); defKey.andKey = MenuUtil.TrimEpgKeyword(item.EventName, CmdExeUtil.IsKeyGesture(e)); defKey.regExpFlag = 0; defKey.serviceList.Clear(); UInt64 sidKey = item.EventInfo.Create64Key(); defKey.serviceList.Add((Int64)sidKey); if (e.Command == EpgCmds.ReSearch) { SetSearchKey(defKey); SearchPg(); } else { var dlg = new SearchWindow(); dlg.SetViewMode(winMode == SearchMode.Change ? SearchMode.NewAdd : winMode); if (Settings.Instance.MenuSet.CancelAutoAddOff == true) { defKey.keyDisabledFlag = 0; } dlg.SetSearchKey(defKey); dlg.SetRecSetting(this.GetRecSetting()); dlg.Left = this.Left + 50; dlg.Top = this.Top + 25; dlg.checkBox_windowPinned.IsChecked = checkBox_windowPinned.IsChecked; dlg.Show(); } } } catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); } }
void showDialog() { if (listView_key.SelectedItem == null) { return; } // try { EpgAutoDataItem info = listView_key.SelectedItem as EpgAutoDataItem; SearchWindow dlg = new SearchWindow(); dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual; dlg.SetViewMode(2); dlg.SetChgAutoAddID(info.EpgAutoAddInfo.dataID); dlg.SetSearchDefKey(info.EpgAutoAddInfo.searchInfo); dlg.SetRecInfoDef(info.EpgAutoAddInfo.recSetting); dlg.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); } }
/// <summary> /// 右クリックメニュー 自動予約登録イベント呼び出し /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cm_autoadd_Click(object sender, RoutedEventArgs e) { try { if (sender.GetType() != typeof(MenuItem)) { return; } ReserveData reserve = GetReserveItem(clickPos); if (reserve == null) { return; } SearchWindow dlg = new SearchWindow(); dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual; dlg.SetViewMode(1); EpgSearchKeyInfo key = new EpgSearchKeyInfo(); if (reserve.Title != null) { key.andKey = reserve.Title; } Int64 sidKey = ((Int64)reserve.OriginalNetworkID) << 32 | ((Int64)reserve.TransportStreamID) << 16 | ((Int64)reserve.ServiceID); key.serviceList.Add(sidKey); dlg.SetSearchDefKey(key); dlg.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); } }
private void cm_autoadd_Click(object sender, RoutedEventArgs e) { try { if (sender.GetType() != typeof(MenuItem)) { return; } if (listView_event.SelectedItem != null) { SearchItem item = listView_event.SelectedItem as SearchItem; SearchWindow dlg = new SearchWindow(); dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual; dlg.SetViewMode(1); EpgSearchKeyInfo key = new EpgSearchKeyInfo(); if (item.EventInfo.ShortInfo != null) { key.andKey = item.EventInfo.ShortInfo.event_name; } Int64 sidKey = ((Int64)item.EventInfo.original_network_id) << 32 | ((Int64)item.EventInfo.transport_stream_id) << 16 | ((Int64)item.EventInfo.service_id); key.serviceList.Add(sidKey); dlg.SetSearchDefKey(key); dlg.ShowDialog(); } } catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); } }
private void autoadd_Click(object sender, RoutedEventArgs e) { if (listView_recinfo.SelectedItem != null) { SearchWindow dlg = new SearchWindow(); dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual; dlg.SetViewMode(1); EpgSearchKeyInfo key = new EpgSearchKeyInfo(); RecInfoItem item = listView_recinfo.SelectedItem as RecInfoItem; key.andKey = item.RecInfo.Title; Int64 sidKey = ((Int64)item.RecInfo.OriginalNetworkID) << 32 | ((Int64)item.RecInfo.TransportStreamID) << 16 | ((Int64)item.RecInfo.ServiceID); key.serviceList.Add(sidKey); dlg.SetSearchDefKey(key); dlg.ShowDialog(); } }
/// <summary> /// 右クリックメニュー 自動予約登録イベント呼び出し /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cm_autoadd_Click(object sender, RoutedEventArgs e) { try { if (sender.GetType() != typeof(MenuItem)) { return; } ReserveData reserve = new ReserveData(); if (GetReserveItem(clickPos, ref reserve) == false) { return; } SearchWindow dlg = new SearchWindow(); dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual; dlg.SetViewMode(1); EpgSearchKeyInfo key = new EpgSearchKeyInfo(); if (reserve.Title != null) { key.andKey = reserve.Title; } Int64 sidKey = ((Int64)reserve.OriginalNetworkID) << 32 | ((Int64)reserve.TransportStreamID) << 16 | ((Int64)reserve.ServiceID); key.serviceList.Add(sidKey); dlg.SetSearchDefKey(key); dlg.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); } }
void SearchCmd() { SearchWindow search = new SearchWindow(); PresentationSource topWindow = PresentationSource.FromVisual(this); if (topWindow != null) { search.Owner = (Window)topWindow.RootVisual; } search.SetViewMode(0); search.ShowDialog(); }
void showDialog() { if (listView_key.SelectedItem == null) { return; } // try { EpgAutoDataItem info = listView_key.SelectedItem as EpgAutoDataItem; SearchWindow dlg = new SearchWindow(); dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual; dlg.SetViewMode(2); dlg.SetChgAutoAddID(info.EpgAutoAddInfo.dataID); dlg.SetSearchDefKey(info.EpgAutoAddInfo.searchInfo); dlg.SetRecInfoDef(info.EpgAutoAddInfo.recSetting); dlg.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); } }
private void listView_key_MouseDoubleClick(object sender, MouseButtonEventArgs e) { try { if (listView_key.SelectedItem != null) { EpgAutoDataItem info = listView_key.SelectedItem as EpgAutoDataItem; SearchWindow dlg = new SearchWindow(); dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual; dlg.SetViewMode(2); dlg.SetChgAutoAddID(info.EpgAutoAddInfo.dataID); dlg.SetSearchDefKey(info.EpgAutoAddInfo.searchInfo); dlg.SetRecInfoDef(info.EpgAutoAddInfo.recSetting); dlg.ShowDialog(); } } catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); } }
private void button_add_Click(object sender, RoutedEventArgs e) { try { SearchWindow dlg = new SearchWindow(); dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual; dlg.SetViewMode(1); dlg.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); } }
/// <summary> /// 右クリックメニュー 自動予約登録イベント呼び出し /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cm_autoadd_Click(object sender, RoutedEventArgs e) { try { if (sender.GetType() != typeof(MenuItem)) { return; } EpgEventInfo program = new EpgEventInfo(); if (GetProgramItem(clickPos, ref program) == false) { return; } SearchWindow dlg = new SearchWindow(); dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual; dlg.SetViewMode(1); EpgSearchKeyInfo key = new EpgSearchKeyInfo(); if (program.ShortInfo != null) { key.andKey = program.ShortInfo.event_name; } Int64 sidKey = ((Int64)program.original_network_id) << 32 | ((Int64)program.transport_stream_id) << 16 | ((Int64)program.service_id); key.serviceList.Add(sidKey); dlg.SetSearchDefKey(key); dlg.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); } }