public void RemoveRunConfig(IRunConfig config) { lock (mRunConfigList) { mRunConfigList.Remove(config); } }
public IRunConfig[] GetRunConfigs() { lock (mRunConfigList) { IRunConfig[] result = new IRunConfig[mRunConfigList.Count]; mRunConfigList.CopyTo(result, 0); return(result); } }
public void AppendRunConfig(IRunConfig config) { lock (mRunConfigList) { if (!mRunConfigList.Contains(config)) { mRunConfigList.Add(config); } } }
private IRunConfig GetRunConfig(int index, int count) { IRunConfig runConfig = null; for (int i = index; i < count; i++) { runConfig = mRunConfigList[i]; if (runConfig.Enabled) { return(runConfig); } } return(null); }
private void button_area_Click(object sender, EventArgs e) { DataGridViewRow row = dataGridView_runPlan.CurrentRow; if (row != null) { IRunConfig runConfig = row.Cells[5].Value as IRunConfig; if (runConfig != null) { FormVisionParamConfig form = new FormVisionParamConfig(); form.VisionParamConfig = runConfig.VisionParamConfig; form.ShowDialog(); } } }