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_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 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_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); } }
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); } }