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); }
private void ResetType() { if (IsTypeElse) { CondGroups.Clear(); } else { CondGroupVM condGroup = CreateDefaultCondGroup(); condGroups.Add(condGroup); CreateBranchWindowVM parent = (CreateBranchWindowVM)Parent; ThenConstruct = parent.NextConstruct; } }