private void Reset() { if (handler != null) { adapter.RowUpdating -= handler; handler = null; } RefreshSchema(); }
override protected void OnRowUpdating(RowUpdatingEventArgs value) { VirtuosoRowUpdatingEventHandler handler = (VirtuosoRowUpdatingEventHandler)Events[EventRowUpdating]; if ((null != handler) && (value is VirtuosoRowUpdatingEventArgs)) { handler(this, (VirtuosoRowUpdatingEventArgs)value); } }
protected override void SetRowUpdatingHandler(DbDataAdapter adapter) { VirtuosoDataAdapter da = adapter as VirtuosoDataAdapter; if (da == null) { throw new InvalidOperationException("adapter is not set."); } handler = new EventHandler <RowUpdatingEventArgs>(RowUpdatingEventHandler); da.RowUpdating += handler; }