public void SetStation(JFStationBase station) { _station = station; if (_isFormLoaded) { UpdateStation2UI(); } }
public void SetStationWorkFlow(JFStationBase station, string workFlowName) { _station = station; _workFlowName = workFlowName; if (_isFormLoaded) { UpdateFlow2UI(); } }
public void SetStationChnType(JFStationBase station, NamedChnType chnType) { _station = station; _chnType = chnType; if (_isFormLoaded) { UpdateStation2UI(); } }
public void SetStation(JFStationBase station) { _station = station; if (null == _station) { SetTrigNames(null); } else { SetTrigNames(_station.CmpTrigNames); } }
public void SetStation(JFStationBase station) { _station = station; if (null == _station) { SetCmrNames(null); } else { SetCmrNames(_station.CameraNames); } }
public void SetStation(JFStationBase station) { _station = station; if (null != _station) { ucStationDataPool.SetDataPool(_station.DataPool); } if (_isFormLoaded) { AdjustStaionUI(); } }
public void SetStation(JFStationBase station) { _station = station; if (null != _station) { Text = station.Name; } _panelDio.SetStation(station); _panelAio.SetStation(station); _panelAxis.SetStation(station); _panelCmpTrig.SetStation(station); _panelLight.SetStation(station); _panelCmr.SetStation(station); _panelWorkFlow.SetStation(station); _panelCfgParam.SetStation(station); if (_isFormLoaded) { LayoutStationUI(); } }
void OnStationWorkStatusChanged(object station, JFWorkStatus currWorkStatus) { if (_isAdjusting) { return; } if (!Created) { return; } if (!_dctStationInfos.ContainsKey(station as IJFStation)) { return; } if (InvokeRequired) { Invoke(new dgOnStationWorkStatusChanged(OnStationWorkStatusChanged), new object[] { station, currWorkStatus }); return; } string timeTxt = DateTime.Now.ToString("HH:mm:ss.fff"); string info = "运行状态:" + JFStationBase.WorkStatusName(currWorkStatus); RichTextBox rchStation = _dctStationInfos[station as IJFStation]; rchStation.AppendText(timeTxt + " " + info + "\n"); if (rchStation.Text.Length >= _stationTipsMaxBytes) { rchStation.Text = rchStation.Text.Substring(_stationTipsMaxBytes / 2); } // string[] lines = rbTips.Text.Split('\n'); //if (lines.Length >= maxTips) //{ // int rmvChars = 0; // for (int i = 0; i < lines.Length - maxTips; i++) // rmvChars += lines[i].Length + 1; // rbTips.Text = rbTips.Text.Substring(rmvChars); //} rchStation.Select(rchStation.TextLength, 0); //滚到最后一行 rchStation.ScrollToCaret(); //滚动到控件光标处 }
public void SetStation(JFStationBase station) { _station = station; innerFlow.SetStation(station); }
public JFWorkFlowThreadPool(JFMethodFlow mf, int threadCount, JFStationBase stationOwner) { }
internal JFWorkFlowThread(JFMethodFlow methodFlow, JFStationBase stationOwner) { _methodFlow = new JFMethodFlow(); _methodFlow.FromTxt(methodFlow.ToTxt()); _methodFlow.SetStation(stationOwner); }
public void SetStation(JFStationBase station) { _stationBase = station; _trueFlow.SetStation(_stationBase); _falseFlow.SetStation(_stationBase); }