/// <summary> /// Removes the specified name. /// </summary> /// <param name="names">The names.</param> public void Remove(params string[] names) { foreach (var name in names) { if (name == null || !Values.ContainsKey(name)) { continue; } Values.Remove(name); Types.Remove(name); if (Checked.ContainsKey(name)) { Checked.Remove(name); } } }
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); } }); }