public static void CallOnUpdate()
        {
            UpdatedEventHandler updated = Updated;

            if (updated != null)
            {
                updated();
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Raises the <see cref="OnUpdated"/> event.
        /// </summary>
        /// <param name="Element">Element being updated.</param>
        public void RaiseUpdated(ILayoutElement Element)
        {
            UpdatedEventHandler h = this.OnUpdated;

            if (!(h is null))
            {
                try
                {
                    h(this, new UpdatedEventArgs(this, Element));
                }
                catch (Exception ex)
                {
                    Log.Critical(ex);
                }
            }
        }
        public static void VariablesUpdated()
        {
            UpdatedEventHandler updated = Updated;

            updated?.Invoke();
        }