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

            currentScript.AddCondition(condition);
            UpdateText();
        }
예제 #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;
        }
예제 #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;
        }
예제 #4
0
        public void DeleteCondition(Conditions.ConditionInterface condition)
        {
            this.mConditions.Remove(condition);

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

            return;
        }