Exemplo n.º 1
0
 private void Reset()
 {
     if (handler != null)
     {
         adapter.RowUpdating -= handler;
         handler              = null;
     }
     RefreshSchema();
 }
Exemplo n.º 2
0
        override protected void OnRowUpdating(RowUpdatingEventArgs value)
        {
            VirtuosoRowUpdatingEventHandler handler = (VirtuosoRowUpdatingEventHandler)Events[EventRowUpdating];

            if ((null != handler) && (value is VirtuosoRowUpdatingEventArgs))
            {
                handler(this, (VirtuosoRowUpdatingEventArgs)value);
            }
        }
Exemplo n.º 3
0
        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;
        }