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); } }
private void MenuItem_Click_ChangeRecMode(object sender, RoutedEventArgs e) { new BlackoutWindow(this).showWindow("予約←→無効"); if (listView_result.SelectedItem != null) { SearchItem item = listView_result.SelectedItem as SearchItem; if (item.IsReserved == true) { ChgReserveWindow dlg = new ChgReserveWindow(); dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual; if (item.ReserveInfo.RecSetting.RecMode == 5) { // 無効 => 予約 RecSettingData defSet = new RecSettingData(); Settings.GetDefRecSetting(0, ref defSet); item.ReserveInfo.RecSetting.RecMode = defSet.RecMode; } else { //予約 => 無効 item.ReserveInfo.RecSetting.RecMode = 5; } dlg.SetReserveInfo(item.ReserveInfo); dlg.button_chg_reserve.RaiseEvent(new RoutedEventArgs(Button.ClickEvent)); } else { AddReserveEpgWindow dlg = new AddReserveEpgWindow(); dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual; dlg.SetEventInfo(item.EventInfo); dlg.button_add_reserve.RaiseEvent(new RoutedEventArgs(Button.ClickEvent)); } // CommonManager.Instance.DB.SetUpdateNotify((UInt32)UpdateNotifyItem.ReserveInfo); CommonManager.Instance.DB.ReloadReserveInfo(); SearchPg(); // listView_result.SelectedItem = null; } }
private void MenuItem_Click_ChangeRecMode(object sender, RoutedEventArgs e) { new BlackoutWindow(this).showWindow("予約←→無効"); if (listView_result.SelectedItem != null) { SearchItem item = listView_result.SelectedItem as SearchItem; if (item.IsReserved == true) { ChgReserveWindow dlg = new ChgReserveWindow(); dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual; if (item.ReserveInfo.RecSetting.RecMode == 5) { // 無効 => 予約 RecSettingData defSet = new RecSettingData(); Settings.GetDefRecSetting(0, ref defSet); item.ReserveInfo.RecSetting.RecMode = defSet.RecMode; } else { //予約 => 無効 item.ReserveInfo.RecSetting.RecMode = 5; } dlg.SetReserveInfo(item.ReserveInfo); dlg.button_chg_reserve.RaiseEvent(new RoutedEventArgs(Button.ClickEvent)); } else { AddReserveEpgWindow dlg = new AddReserveEpgWindow(); dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual; dlg.SetEventInfo(item.EventInfo); dlg.button_add_reserve.RaiseEvent(new RoutedEventArgs(Button.ClickEvent)); } // CommonManager.Instance.DB.SetUpdateNotify((UInt32)UpdateNotifyItem.ReserveInfo); CommonManager.Instance.DB.ReloadReserveInfo(); SearchPg(); // listView_result.SelectedItem = null; } }
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); } }