示例#1
0
        internal void Status2Changed(Status status, TransferItem transferItem)
        {
            if (status == Status.Checked)
            {
                List2Checked.Add(transferItem);
            }
            else
            {
                List2Checked.Remove(transferItem);
            }

            if (List2.All(List2Checked.Contains))
            {
                list2Status = Status.Checked;
            }
            else if (List2Checked.Count > 0)
            {
                list2Status = Status.Indeterminate;
            }
            else
            {
                list2Status = Status.UnChecked;
            }
            RequireRender = true;
        }