Example #1
0
        public void Validate()
        {
            // Same as Enable(), we do ports first to make sure
            // everything is ready for the node's OnValidate
            foreach (var port in ports)
            {
                port.Node = this;
                port.OnValidate();
            }

            OnValidate();
            OnValidateEvent?.Invoke();
        }
Example #2
0
 /// <summary><c>Progress.Worker</c> calls this and 
 /// sets the delegate to be <c>Progress.OnValidateEvent</c>
 /// </summary>
 /// 
 public void SetOnValidateEvent(OnValidateEvent ove)
 {
     m_OnValidateEvent = ove;
 }
 /// <summary><c>Progress.Worker</c> calls this and
 /// sets the delegate to be <c>Progress.OnValidateEvent</c>
 /// </summary>
 ///
 public void SetOnValidateEvent(OnValidateEvent ove)
 {
     m_OnValidateEvent = ove;
 }