Beispiel #1
0
 private void RefreshRackView(ResultRecord result, int slotNumber)
 {
     // 刷新块架报告
     ClientUICommon.syncContext.Post(o =>
     {
         if (slotNumber <= 0)
         {
             return;
         }
         int pos = slotNumber - 1;
         RackResultRecordList[pos].PartID         = result.PartID;
         RackResultRecordList[pos].IsPass         = result.IsPass ? "合格" : "不合格";
         RackResultRecordList[pos].ServerID       = result.ServerID.ToString();
         RackResultRecordList[pos].ReportFileName = result.CmmFileName;
         RackResultRecordList[pos].RptFileName    = result.RptFileName;
         RackResultRecordList[pos].ReportFilePath = result.FilePath;
         RackResultRecordList[pos].PartNumber     = result.PartNumber.ToString();
         RackResultRecordList[pos].MeasDateTime   = result.MeasDateTime;
         RackResultRecordList[pos].PcProgram      = result.MeasProgram;
         ResultView.InvalidateRow(pos);
         //resultRecordList.Add(new PartResultRecord(RackResultRecordList[pos]));
         //dataGridView1.InvalidateRow(resultRecordList.Count - 1);
     }, null);
 }