private void AddReserve(EpgEventInfo eventInfo) { { AddReserveEpgWindow dlg = new AddReserveEpgWindow(); dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual; dlg.SetEventInfo(eventInfo); dlg.ShowDialog(); } }
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) { } } }
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); }
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); } }
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); } }
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); } }
/// <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); } }