Exemple #1
0
        internal void AddCondition(Conditions.ConditionInterface condition)
        {
            int    curScriptIndex = treeViewMain.SelectedNode.Index;
            Script currentScript  = mScripts[curScriptIndex];

            currentScript.AddCondition(condition);
            UpdateText();
        }
Exemple #2
0
        public void MoveTargetUp(Conditions.ConditionInterface condition)
        {
            int curIndex = this.mConditions.IndexOf(condition);

            if (curIndex == 0)
            {
                // already top of list
                return;
            }

            this.mConditions.Reverse(curIndex - 1, 2);

            return;
        }
Exemple #3
0
        public void MoveTargetDown(Conditions.ConditionInterface condition)
        {
            int curIndex = this.mConditions.IndexOf(condition);

            if (curIndex >= this.mConditions.Count - 1)
            {
                // already bottom of the list
                return;
            }

            this.mConditions.Reverse(curIndex, 2);

            return;
        }
Exemple #4
0
        public void DeleteCondition(Conditions.ConditionInterface condition)
        {
            this.mConditions.Remove(condition);

            return;
        }
Exemple #5
0
 public void EditCondition(Conditions.ConditionInterface condition)
 {
     return;
 }
Exemple #6
0
        public void AddCondition(Conditions.ConditionInterface condition)
        {
            this.mConditions.Add(condition);

            return;
        }