Beispiel #1
0
        public void Init(WorkspaceDef wksdef)
        {
            _wksdef = wksdef;
            var strategyFilter = UWorkspace.StrategyFilter(wksdef);

            for (int i = 0; i < checkedListBox1.Items.Count; i++)
            {
                var item  = checkedListBox1.Items[i].ToString();
                var check = strategyFilter.Sensors.Contains(item);
                checkedListBox1.SetItemChecked(i, check);
            }

            numericUpDown1.Value = Convert.ToDecimal(strategyFilter.Days);
        }
Beispiel #2
0
 private void GetStrategyFilter(WorkspaceDef wksdef)
 {
     StrategyFilter = UWorkspace.StrategyFilter(wksdef);
 }