Example #1
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)
         {
         }
     }
 }
Example #2
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);
 }
Example #3
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);
     }
 }
Example #4
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);
     }
 }