public void DownCondGroup(CondGroupVM condGroup) { int index = CondGroups.IndexOf(condGroup); CondGroups.Move(index, index + 1); OnCondGroupsOrderChanged(); }
public bool CanDownCondGroup(CondGroupVM condGroup) { int index = CondGroups.IndexOf(condGroup); if (index == CondGroups.Count - 1) { return(false); } return(true); }
public bool CanUpCondGroup(CondGroupVM condGroup) { int index = CondGroups.IndexOf(condGroup); if (index == 0) { return(false); } return(true); }