예제 #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
파일: MenuUtil.cs 프로젝트: nekopanda/EDCB
 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
 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);
     }
 }
예제 #6
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);
     }
 }
예제 #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
 /// <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);
     }
 }