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