SetOpenMode() public method

public SetOpenMode ( byte mode ) : void
mode byte
return void
示例#1
0
 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)
         {
         }
     }
 }
示例#2
0
 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);
     }
 }
示例#3
0
 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);
 }
示例#4
0
 /// <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);
     }
 }