private void ChangeReserve(ReserveData reserveInfo) { { ChgReserveWindow dlg = new ChgReserveWindow(); dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual; dlg.SetOpenMode(setViewInfo.EpgSetting.EpgInfoOpenMode); dlg.SetReserveInfo(reserveInfo); if (dlg.ShowDialog() == true) { } } }
private void ChangeReserve(ReserveData reserveInfo) { try{ ChgReserveWindow dlg = new ChgReserveWindow(); dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual; dlg.SetOpenMode(Settings.Instance.EpgInfoOpenMode); dlg.SetReserveInfo(reserveInfo); if (dlg.ShowDialog() == true) { } } catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); } }
public static bool?OpenChgReserveDialog(ReserveData Data, Control Owner, byte epgInfoOpenMode = 0) { try { var dlg = new ChgReserveWindow(); dlg.Owner = CommonUtil.GetTopWindow(Owner); if (Data != null) { dlg.SetReserveInfo(Data); dlg.SetOpenMode(epgInfoOpenMode); } else { dlg.SetAddReserveMode(); } return(dlg.ShowDialog()); } catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); } return(null); }
/// <summary> /// 予約変更 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ChangeReserve(ReserveData reserveInfo) { try { ChgReserveWindow dlg = new ChgReserveWindow(); dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual; dlg.SetOpenMode(Settings.Instance.EpgInfoOpenMode); dlg.SetReserveInfo(reserveInfo); if (dlg.ShowDialog() == true) { } } catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); } }