Exemple #1
0
        int RemoveCondition(TagData tag)
        {
            if (_conditions == null || tag == null)
            {
                return(-1);
            }
            string id = tag.Name;

            for (int i = _conditions.Count - 1; i >= 0; i--)
            {
                if (_conditions[i].Source == id)
                {
                    for (int j = _subconds.Count - 1; j >= 0; j--)
                    {
                        if (_subconds[j].ConditionId == _conditions[i].TypeId)
                        {
                            _subconds.RemoveAt(j);
                        }
                    }
                    _conditions.RemoveAt(i);
                }
            }
            return(1);
        }
Exemple #2
0
 public ScaleParam(List <Scaling> list, TagData tag)
 {
     InitializeComponent();
     _list = list;
     _tag  = tag;
 }