Example #1
0
        public void DownCondGroup(CondGroupVM condGroup)
        {
            int index = CondGroups.IndexOf(condGroup);

            CondGroups.Move(index, index + 1);
            OnCondGroupsOrderChanged();
        }
Example #2
0
        public bool CanDownCondGroup(CondGroupVM condGroup)
        {
            int index = CondGroups.IndexOf(condGroup);

            if (index == CondGroups.Count - 1)
            {
                return(false);
            }
            return(true);
        }
Example #3
0
        public bool CanUpCondGroup(CondGroupVM condGroup)
        {
            int index = CondGroups.IndexOf(condGroup);

            if (index == 0)
            {
                return(false);
            }
            return(true);
        }
Example #4
0
        private void ResetType()
        {
            if (IsTypeElse)
            {
                CondGroups.Clear();
            }
            else
            {
                CondGroupVM condGroup = CreateDefaultCondGroup();
                condGroups.Add(condGroup);

                CreateBranchWindowVM parent = (CreateBranchWindowVM)Parent;
                ThenConstruct = parent.NextConstruct;
            }
        }