private void Window_IsVisibleChanged_1(object sender, DependencyPropertyChangedEventArgs e) { MainWindow mainWindow1 = this.Owner as MainWindow; if (this.IsVisible) { BlackoutWindow.blinkSearchButton_Stop( this, mainWindow1.getSearchButton(false)); } }
protected override void UserControl_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e) { //BlackoutWindow経由のジャンプ base.UserControl_IsVisibleChanged(sender, e); if (DataListBox != null && this.IsVisible == true) { if (BlackoutWindow.HasData == true) { ItemIdx = ViewUtil.JumpToListItem(BlackoutWindow.SelectedData, DataListBox, BlackoutWindow.NowJumpTable == true ? JumpItemStyle.JumpTo : JumpItemStyle.None); } BlackoutWindow.Clear(); } }
protected override void UserControl_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e) { if (this.IsVisible == false) { return; } ReloadInfo(); SearchJumpTargetProgram(BlackoutWindow.SelectedItem); //番組表タブが一つもないときなどのゴミ掃除 Dispatcher.BeginInvoke(new Action(() => BlackoutWindow.Clear()), DispatcherPriority.Input); }
protected override void UserControl_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e) { base.UserControl_IsVisibleChanged(sender, e); if (this.IsVisible == false) { return; } if (BlackoutWindow.HasReserveData == true) { MoveToItem(BlackoutWindow.SelectedItem.ReserveInfo.ReserveID, BlackoutWindow.NowJumpTable == true ? JumpItemStyle.JumpTo : JumpItemStyle.None); } BlackoutWindow.Clear(); }
private void MenuItem_Click_ProgramTable(object sender, RoutedEventArgs e) { SearchItem item1 = this.listView_result.SelectedItem as SearchItem; if (item1 != null) { BlackoutWindow.selectedSearchItem = item1; MainWindow mainWindow1 = this.Owner as MainWindow; if (mainWindow1 != null) { base.Hide(); BlackoutWindow.blinkSearchButton_Start( this, mainWindow1.getSearchButton(true)); mainWindow1.moveTo_tabItem_epg(); mainWindow1.Hide(); // EpgDataView.UserControl_IsVisibleChangedイベントを発生させる mainWindow1.Show(); } } }
protected override void UserControl_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e) { base.UserControl_IsVisibleChanged(sender, e);//ここでタブが生成される if (this.IsVisible == true) { if (SearchJumpTargetProgram(BlackoutWindow.Create64Key()) == false) { BlackoutWindow.Clear();//見つからなかったときのゴミ掃除 } //TabItem.IsVisibleChangedは使わず、SearchJumpTargetProgram()による移動の後に実行する if (tabControl.SelectedIndex != -1) { var tab = tabControl.SelectedItem as EpgTabItem; if (tab.view == null) { tab.CreateContent(); } } } }
/// <summary> /// 予約一覧からのジャンプ先を番組表タブから探す /// </summary> void searchJumpTargetProgram() { UInt64 serviceKey_Target1 = BlackoutWindow.Create64Key(); if (serviceKey_Target1 == 0) { return; } foreach (TabItem tabItem1 in this.tabControl.Items) { var epgView1 = tabItem1.Content as EpgDataViewItem; foreach (UInt64 serviceKey_OnTab1 in epgView1.GetViewMode().ViewServiceList) { if (serviceKey_Target1 == serviceKey_OnTab1) { tabItem1.IsSelected = true; return; } } } }
protected override void OnLoadingSubProc() { // サービス選択 UInt64 serviceKey_Target = BlackoutWindow.Create64Key(); if (serviceKey_Target == 0) { return; } foreach (ComboBoxItem item in this.comboBox_service.Items) { EpgServiceInfo serviceInfo = item.DataContext as EpgServiceInfo; if (serviceKey_Target == serviceInfo.Create64Key()) { if (this.comboBox_service.SelectedItem != item) { this.comboBox_service.SelectedItem = item; } break; } } }