Exemple #1
0
 public void AddCheckResult(Bean previous, Bean current, CheckResult result)
 {
     Checked.Add(new Schemas.Checked()
     {
         Previous = previous, Current = current
     }, result);
 }
        private void Init()
        {
            Interactions.Where(_ => _.Value.Interaction == Interaction.Check && (bool?)_.Value.Value == true).Subscribe(_ =>
            {
                Checked.Add(_.Key);
                if (Unchecked.Contains(_.Key))
                {
                    Unchecked.Remove(_.Key);
                }
            });

            ChildSubject.Where(_ => _.Value.Interaction == Interaction.Check && (bool?)_.Value.Value == true).Subscribe(_ =>
            {
                Checked.Add(_.Key);
                if (Unchecked.Contains(_.Key))
                {
                    Unchecked.Remove(_.Key);
                }
            });

            Interactions.Where(_ => _.Value.Interaction == Interaction.Check && !((bool?)_.Value.Value == true)).Subscribe(_ =>
            {
                Unchecked.Add(_.Key);
                if (Checked.Contains(_.Key))
                {
                    Checked.Remove(_.Key);
                }
            });

            ChildSubject.Where(_ => _.Value.Interaction == Interaction.Check && !((bool?)_.Value.Value == true)).Subscribe(_ =>
            {
                Unchecked.Add(_.Key);
                if (Checked.Contains(_.Key))
                {
                    Checked.Remove(_.Key);
                }
            });
        }