internal void AddCondition(Conditions.ConditionInterface condition) { int curScriptIndex = treeViewMain.SelectedNode.Index; Script currentScript = mScripts[curScriptIndex]; currentScript.AddCondition(condition); UpdateText(); }
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; }
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; }
public void DeleteCondition(Conditions.ConditionInterface condition) { this.mConditions.Remove(condition); return; }
public void EditCondition(Conditions.ConditionInterface condition) { return; }
public void AddCondition(Conditions.ConditionInterface condition) { this.mConditions.Add(condition); return; }