protected virtual void OnUpdated(SqlDataSourceStatusEventArgs e)
        {
            SqlDataSourceStatusEventHandler handler = base.Events[EventUpdated] as SqlDataSourceStatusEventHandler;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemplo n.º 2
0
        protected virtual void OnSelected(SqlDataSourceStatusEventArgs e)
        {
            if (!HasEvents())
            {
                return;
            }
            SqlDataSourceStatusEventHandler h = Events [EventSelected] as SqlDataSourceStatusEventHandler;

            if (h != null)
            {
                h(this, e);
            }
        }
Exemplo n.º 3
0
        protected virtual void OnUpdated(SqlDataSourceStatusEventArgs e)
        {
            if (owner.EnableCaching)
            {
                owner.Cache.Expire();
            }

            if (!HasEvents())
            {
                return;
            }
            SqlDataSourceStatusEventHandler h = Events [EventUpdated] as SqlDataSourceStatusEventHandler;

            if (h != null)
            {
                h(this, e);
            }
        }