| | |
| | | |
| | | private void cboCalibrationMethod_SelectedIndexChanged(object sender, EventArgs e) |
| | | { |
| | | //if (cboCalibrationMethod.SelectedIndex >= 0) |
| | | //{ |
| | | // string methodCode = cboCalibrationMethod.SelectedValue.ToString(); |
| | | if (cboCalibrationMethod.SelectedIndex >= 0) |
| | | { |
| | | string methodCode = cboCalibrationMethod.SelectedValue.ToString(); |
| | | |
| | | // _calibrationMethod = _calibrationMethodDict[_calibrationMethodDict.Keys.FirstOrDefault(u => u.MethodCode == methodCode)]; |
| | | _calibrationMethod = _calibrationMethodDict[_calibrationMethodDict.Keys.FirstOrDefault(u => u.MethodCode == methodCode)]; |
| | | |
| | | // if (Process.StationConfig.ProcessOpConfigDict.Keys.Contains(methodCode)) |
| | | // { |
| | | // propCalibrationConfig.SelectedObject = Process.StationConfig.ProcessOpConfigDict[methodCode]; |
| | | // } |
| | | // else |
| | | // { |
| | | // MessageBox.Show(@"Config of " + methodCode + @" is not found"); |
| | | // } |
| | | //} |
| | | if (Process.StationConfig.ProcessOpConfigDict.Keys.Contains(methodCode)) |
| | | { |
| | | propCalibrationConfig.SelectedObject = Process.StationConfig.ProcessOpConfigDict[methodCode]; |
| | | } |
| | | else |
| | | { |
| | | MessageBox.Show(@"Config of " + methodCode + @" is not found"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | private void btnStartCalibration_Click(object sender, EventArgs e) |
| | |
| | | List<IDevice> _deviceList = new List<IDevice>(); |
| | | private void InitialDevices() |
| | | { |
| | | _deviceList = (Process as ProcessControl).GetDeviceList(); |
| | | _deviceList = (Process as ProcessControl).DeviceList; |
| | | |
| | | List<ISimpleDevice> list = _deviceList.Select(u => u as ISimpleDevice).ToList(); |
| | | UIHelper.SetCombo(cboCalibDevices, list, "Name", "Id"); |