Пример #1
0
        public void CheckCollection(ArrayList phones)
        {
            isValid = true;
            foreach (Phone phone in phones)
            {
                foreach (ICheck cheker in chekers)
                {
                    if (cheker.CanCheck(phone))
                    {
                        if (!cheker.Check(phone))
                        {
                            isValid = false;
                        }
                    }
                }
            }

            ValidChanged?.Invoke(isValid);
        }
Пример #2
0
 /// <summary>
 /// Fires ValidChanged.
 /// </summary>
 protected virtual void OnValidChanged()
 {
     ValidChanged?.Invoke(this, EventArgs.Empty);
 }