Пример #1
0
 public void RemoveRunConfig(IRunConfig config)
 {
     lock (mRunConfigList)
     {
         mRunConfigList.Remove(config);
     }
 }
Пример #2
0
 public IRunConfig[] GetRunConfigs()
 {
     lock (mRunConfigList)
     {
         IRunConfig[] result = new IRunConfig[mRunConfigList.Count];
         mRunConfigList.CopyTo(result, 0);
         return(result);
     }
 }
Пример #3
0
 public void AppendRunConfig(IRunConfig config)
 {
     lock (mRunConfigList)
     {
         if (!mRunConfigList.Contains(config))
         {
             mRunConfigList.Add(config);
         }
     }
 }
Пример #4
0
        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);
        }
Пример #5
0
        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();
                }
            }
        }