Exemple #1
0
 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();
 }
Exemple #2
0
 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();
     }
 }
Exemple #3
0
        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);
            }
        }
Exemple #5
0
 void SearchCmd()
 {
     SearchWindow search = new SearchWindow();
     PresentationSource topWindow = PresentationSource.FromVisual(this);
     if (topWindow != null)
     {
         search.Owner = (Window)topWindow.RootVisual;
     }
     search.SetViewMode(0);
     search.ShowDialog();
 }
Exemple #6
0
 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);
     }
 }
Exemple #7
0
 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);
     }
 }
Exemple #8
0
 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);
     }
 }
Exemple #9
0
        /// <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);
            }
        }
        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);
            }
        }