public void ChangeTriggerPosition(INDUNTRIGGERTYPE type, int index, bool bUp) { if (type != INDUNTRIGGERTYPE.INDUNTRIGGERTYPE_TRIGGER) { if (type == INDUNTRIGGERTYPE.INDUNTRIGGERTYPE_ACTION) { if (index >= 0 && index < this.m_arAction.Count) { IndunTriggerParam item = this.m_arAction[index]; if (bUp) { if (index > 0) { this.m_arAction.RemoveAt(index); this.m_arAction.Insert(index - 1, item); } } else if (index < this.m_arAction.Count - 1) { this.m_arAction.RemoveAt(index); this.m_arAction.Insert(index + 1, item); } this.SortAction(); } } } else if (index >= 0 && index < this.m_arTrigger.Count) { IndunTriggerParam item2 = this.m_arTrigger[index]; if (bUp) { if (index > 0) { this.m_arTrigger.RemoveAt(index); this.m_arTrigger.Insert(index - 1, item2); } } else if (index < this.m_arTrigger.Count - 1) { this.m_arTrigger.RemoveAt(index); this.m_arTrigger.Insert(index + 1, item2); } this.SortTrigger(); } }
public PARAMTYPE[] GetParam(INDUNTRIGGERTYPE eType, int eKind) { if (eType <= INDUNTRIGGERTYPE.INDUNTRIGGERTYPE_NONE || eType >= INDUNTRIGGERTYPE.INDUNTRIGGERTYPE_MAX) { return(null); } switch (eType) { case INDUNTRIGGERTYPE.INDUNTRIGGERTYPE_NONE: return(null); case INDUNTRIGGERTYPE.INDUNTRIGGERTYPE_EVENT: return(null); case INDUNTRIGGERTYPE.INDUNTRIGGERTYPE_TRIGGER: return(this.m_TriggerParam[eKind].m_eParam); case INDUNTRIGGERTYPE.INDUNTRIGGERTYPE_ACTION: return(this.m_ActionParam[eKind].m_eParam); default: return(null); } }