protected virtual void OnUpdated(SqlDataSourceStatusEventArgs e) { SqlDataSourceStatusEventHandler handler = base.Events[EventUpdated] as SqlDataSourceStatusEventHandler; if (handler != null) { handler(this, e); } }
protected virtual void OnSelected(SqlDataSourceStatusEventArgs e) { if (!HasEvents()) { return; } SqlDataSourceStatusEventHandler h = Events [EventSelected] as SqlDataSourceStatusEventHandler; if (h != null) { h(this, e); } }
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); } }