Exemple #1
0
        internal void Status1Changed(Status status, TransferItem transferItem)
        {
            if (status == Status.Checked)
            {
                List1Checked.Add(transferItem);
            }
            else
            {
                List1Checked.Remove(transferItem);
            }

            if (List1.All(List1Checked.Contains))
            {
                list1Status = Status.Checked;
            }
            else if (List1Checked.Count > 0)
            {
                list1Status = Status.Indeterminate;
            }
            else
            {
                list1Status = Status.UnChecked;
            }
            RequireRender = true;
        }