private void UserControl_Loaded(object sender, RoutedEventArgs e) { if (RedrawReserve == true && this.IsVisible == true) { if (ReDrawReserveData() == true) { RedrawReserve = false; } } this._mainWindow = (MainWindow)Window.GetWindow(this); this._popupWindow = new PopupWindow(Window.GetWindow(this)); }
/// <summary> /// 右クリックメニュー 番組名でググるイベント呼び出し /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cm_google_Click(object sender, RoutedEventArgs e) { try { if (sender.GetType() != typeof(MenuItem)) { return; } EpgEventInfo program = new EpgEventInfo(); if (GetProgramItem(clickPos, ref program) == false) { return; } PopupWindow _popupWindow = new PopupWindow(Window.GetWindow(this)); _popupWindow.google(program.ShortInfo.event_name); _popupWindow.Close(); } catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); } }
private void Window_Loaded(object sender, RoutedEventArgs e) { if (string.IsNullOrWhiteSpace(this.searchKeyView.ComboBox_andKey.Text)) { this.searchKeyView.ComboBox_andKey.Focus(); } else { this.SearchPg(); } this._popupWindow = new PopupWindow(this); }
/// <summary> /// 右クリックメニュー 番組名でググるイベント呼び出し /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cm_google_Click(object sender, RoutedEventArgs e) { try { List<UInt32> list = new List<UInt32>(); foreach (SearchItem item in listView_event.SelectedItems) { PopupWindow _popupWindow = new PopupWindow(Window.GetWindow(this)); _popupWindow.google(item.EventName); _popupWindow.Close(); } } catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); } }