示例#1
0
 private void AddReserve(EpgEventInfo eventInfo)
 {
     {
         AddReserveEpgWindow dlg = new AddReserveEpgWindow();
         dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual;
         dlg.SetEventInfo(eventInfo);
         dlg.ShowDialog();
     }
 }
示例#2
0
 private void AddReserve(EpgEventInfo eventInfo, bool reservable)
 {
     {
         AddReserveEpgWindow dlg = new AddReserveEpgWindow();
         dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual;
         dlg.SetOpenMode(setViewInfo.EpgSetting.EpgInfoOpenMode);
         dlg.SetReservable(reservable);
         dlg.SetEventInfo(eventInfo);
         if (dlg.ShowDialog() == true)
         {
         }
     }
 }
示例#3
0
 public static bool?OpenEpgReserveDialog(EpgEventInfo Data, Control Owner, byte epgInfoOpenMode = 0)
 {
     try
     {
         var dlg = new AddReserveEpgWindow();
         dlg.Owner = CommonUtil.GetTopWindow(Owner);
         dlg.SetEventInfo(Data);
         dlg.SetOpenMode(epgInfoOpenMode);
         return(dlg.ShowDialog());
     }
     catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); }
     return(null);
 }
示例#4
0
 private void AddReserve(EpgEventInfo eventInfo)
 {
     try
     {
         AddReserveEpgWindow dlg = new AddReserveEpgWindow();
         dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual;
         dlg.SetEventInfo(eventInfo);
         dlg.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace);
     }
 }
示例#5
0
        public static bool?OpenEpgReserveDialog(EpgEventInfo Data, Int32 epgInfoOpenMode = 0)
        {
            try
            {
                if (AddReserveEpgWindow.ChangeDataLastUsedWindow(Data) != null)
                {
                    return(true);
                }

                //番組表でのダブルクリック時のフォーカス対策
                Dispatcher.CurrentDispatcher.BeginInvoke(new Action(() => new AddReserveEpgWindow(Data, epgInfoOpenMode).Show()));
                return(true);
            }
            catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); }
            return(null);
        }
示例#6
0
 private void AddReserve(EpgEventInfo eventInfo, bool reservable)
 {
     try
     {
         AddReserveEpgWindow dlg = new AddReserveEpgWindow();
         dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual;
         dlg.SetOpenMode(Settings.Instance.EpgInfoOpenMode);
         dlg.SetReservable(reservable);
         dlg.SetEventInfo(eventInfo);
         if (dlg.ShowDialog() == true)
         {
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace);
     }
 }
示例#7
0
 private void AddReserve(EpgEventInfo eventInfo)
 {
     try
     {
         AddReserveEpgWindow dlg = new AddReserveEpgWindow();
         dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual;
         dlg.SetEventInfo(eventInfo);
         if (dlg.ShowDialog() == true)
         {
             CommonManager.Instance.DB.SetUpdateNotify((UInt32)UpdateNotifyItem.ReserveInfo);
             CommonManager.Instance.DB.ReloadReserveInfo();
             SearchPg();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace);
     }
 }
示例#8
0
        private void MenuItem_Click_ChangeRecMode(object sender, RoutedEventArgs e)
        {
            new BlackoutWindow(this).showWindow("予約←→無効");
            if (listView_result.SelectedItem != null)
            {
                SearchItem item = listView_result.SelectedItem as SearchItem;
                if (item.IsReserved == true)
                {
                    ChgReserveWindow dlg = new ChgReserveWindow();
                    dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual;

                    if (item.ReserveInfo.RecSetting.RecMode == 5)
                    {
                        // 無効 => 予約
                        RecSettingData defSet = new RecSettingData();
                        Settings.GetDefRecSetting(0, ref defSet);
                        item.ReserveInfo.RecSetting.RecMode = defSet.RecMode;
                    }
                    else
                    {
                        //予約 => 無効
                        item.ReserveInfo.RecSetting.RecMode = 5;
                    }

                    dlg.SetReserveInfo(item.ReserveInfo);
                    dlg.button_chg_reserve.RaiseEvent(new RoutedEventArgs(Button.ClickEvent));
                }
                else
                {
                    AddReserveEpgWindow dlg = new AddReserveEpgWindow();
                    dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual;
                    dlg.SetEventInfo(item.EventInfo);
                    dlg.button_add_reserve.RaiseEvent(new RoutedEventArgs(Button.ClickEvent));
                }
                //
                CommonManager.Instance.DB.SetUpdateNotify((UInt32)UpdateNotifyItem.ReserveInfo);
                CommonManager.Instance.DB.ReloadReserveInfo();
                SearchPg();
                //
                listView_result.SelectedItem = null;
            }
        }
示例#9
0
        private void MenuItem_Click_ChangeRecMode(object sender, RoutedEventArgs e)
        {
            new BlackoutWindow(this).showWindow("予約←→無効");
            if (listView_result.SelectedItem != null)
            {
                SearchItem item = listView_result.SelectedItem as SearchItem;
                if (item.IsReserved == true)
                {
                    ChgReserveWindow dlg = new ChgReserveWindow();
                    dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual;

                    if (item.ReserveInfo.RecSetting.RecMode == 5)
                    {
                        // 無効 => 予約
                        RecSettingData defSet = new RecSettingData();
                        Settings.GetDefRecSetting(0, ref defSet);
                        item.ReserveInfo.RecSetting.RecMode = defSet.RecMode;
                    }
                    else
                    {
                        //予約 => 無効
                        item.ReserveInfo.RecSetting.RecMode = 5;
                    }

                    dlg.SetReserveInfo(item.ReserveInfo);
                    dlg.button_chg_reserve.RaiseEvent(new RoutedEventArgs(Button.ClickEvent));
                }
                else
                {
                    AddReserveEpgWindow dlg = new AddReserveEpgWindow();
                    dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual;
                    dlg.SetEventInfo(item.EventInfo);
                    dlg.button_add_reserve.RaiseEvent(new RoutedEventArgs(Button.ClickEvent));
                }
                //
                CommonManager.Instance.DB.SetUpdateNotify((UInt32)UpdateNotifyItem.ReserveInfo);
                CommonManager.Instance.DB.ReloadReserveInfo();
                SearchPg();
                //
                listView_result.SelectedItem = null;
            }
        }
示例#10
0
 private void AddReserve(EpgEventInfo eventInfo)
 {
     try
     {
         AddReserveEpgWindow dlg = new AddReserveEpgWindow();
         dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual;
         dlg.SetEventInfo(eventInfo);
         if (dlg.ShowDialog() == true)
         {
             CommonManager.Instance.DB.SetUpdateNotify((UInt32)UpdateNotifyItem.ReserveInfo);
             CommonManager.Instance.DB.ReloadReserveInfo();
             SearchPg();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace);
     }
 }
示例#11
0
 /// <summary>
 /// 予約追加
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void AddReserve(EpgEventInfo eventInfo)
 {
     try
     {
         AddReserveEpgWindow dlg = new AddReserveEpgWindow();
         dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual;
         dlg.SetOpenMode(Settings.Instance.EpgInfoOpenMode);
         dlg.SetEventInfo(eventInfo);
         if (dlg.ShowDialog() == true)
         {
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace);
     }
 }