Exemple #1
0
        /// <summary>
        /// 重新配置任务(呼叫工厂创建后取代任务清单)
        /// </summary>
        public void ReconfigTask(int taskIndex, int ch, string item, object augment = null)
        {
            _tasks.RemoveAt(taskIndex);
            int    channel = _chList.IndexOf(ch);
            string lib     = _libraries[_measureItems.FindIndex(x => x == item)];

            _tasks.Insert(taskIndex, MathEngineFactory.CreateTask(ch, item, lib));
        }
Exemple #2
0
        /// <summary>
        /// 添加分析任务(呼叫工厂创建方法)
        /// </summary>
        public void AddTask(int ch, string item, object augment = null)
        {
            string lib = _libraries[_measureItems.FindIndex(x => x == item)];

            _tasks.Add(MathEngineFactory.CreateTask(ch, item, lib));
        }