Exemple #1
0
 private void AdjustPM()
 {
     try
     {
         try
         {
             this.SaveSelectFile();
             if (this.m_Resultshow != null)
             {
                 this.m_DataForAdjust.PropModel = this.m_Resultshow.after;
             }
             this.m_Adjust = new SPMAdjustDT(this.m_IBaseService, this.m_DataForAdjust, this.m_FileInfoList);
             this.GetParaRange();
             this.m_Adjust.RangeSet = this.m_RangeSet;
             LockMainForm.Lock();
             this.m_retValue = this.m_Adjust.ModelAdjust(this.isAdjustClutterCheckBox.Checked);
             this.m_IsAdjustSucceed = (this.m_retValue == ReturnValue.PROPADJ_SUCCESS) || (this.m_retValue == ReturnValue.PROPCOR_NONRECURSIVE);
         }
         catch (Exception exception)
         {
             WriteLog.Logger.Error(exception.Message + " " + exception.StackTrace);
         }
     }
     finally
     {
         LockMainForm.Unlock();
     }
 }
Exemple #2
0
 private void DrawAdjustResult(TableLayoutPanel tlpSelectPara, PropModelAdjustBase pmAdjust)
 {
     try
     {
         this.GetParaRange();
         this.m_Resultshow = new ResultForm(this.m_IBaseService, this.m_FileInfoList);
         this.m_Resultshow.before = pmAdjust.modelBeforeAdjust;
         this.m_Resultshow.after = pmAdjust.modelAfterAdjust;
         this.m_Resultshow.resultData = pmAdjust.dataForResultView;
         if ((float.IsNaN(this.m_Resultshow.resultData.StdError) || float.IsNaN(this.m_Resultshow.resultData.CorCoeff)) || float.IsNaN(this.m_Resultshow.resultData.AverageError))
         {
             MessageBoxUtil.ShowError(PropagationResource.PROP_ADJUST_FAILED);
         }
         else
         {
             this.m_Resultshow.RangeSet = this.m_RangeSet;
             if (this.m_Resultshow.ShowDialog() == DialogResult.Retry)
             {
                 for (int i = 0; i < tlpSelectPara.RowCount; i++)
                 {
                     (tlpSelectPara.GetControlFromPosition(0, i) as CheckBox).Checked = false;
                 }
                 this.m_DataForAdjust.PropModel = this.m_Resultshow.after;
                 this.m_Manage.BindPropParam(this.m_DataForAdjust.PropModel, tlpSelectPara);
                 this.FillclutterCheckBox();
             }
             else
             {
                 base.DialogResult = DialogResult.Cancel;
                 base.Close();
             }
         }
     }
     catch (Exception exception)
     {
         WriteLog.Logger.Error("Adjust Failed : " + exception.StackTrace);
     }
 }