Esempio n. 1
0
 private void Uc_SP_PathControlList_SegmentEnableDisable(object sender, SegmentStatusUpdateEventArgs e)
 {
     try
     {
         app.SegmentBLL.webAPI.SendSegmentStatusUpdate(e.seg_id, ASEGMENT.DisableType.User, e.status);
     }
     catch (Exception ex)
     {
         logger.Error(ex, "Exception");
     }
 }
Esempio n. 2
0
 private void Uc_SP_PathControlList_SegmentCVEnable(object sender, SegmentStatusUpdateEventArgs e)
 {
     try
     {
         var send_result = app.SegmentBLL.webAPI.SendSegmentStatusUpdate(e.seg_id, ASEGMENT.DisableType.Safety, E_SEG_STATUS.Active);
         if (!send_result.isSuccess)
         {
             TipMessage_Type_Light.Show("Failure", send_result.result, BCAppConstants.WARN_MSG);
         }
     }
     catch (Exception ex)
     {
         logger.Error(ex, "Exception");
     }
 }