Exemplo n.º 1
0
        protected virtual void OnItemInserted(CrmEntityFormViewInsertedEventArgs args)
        {
            var handler = (EventHandler <CrmEntityFormViewInsertedEventArgs>)Events[_eventItemInserted];

            if (handler != null)
            {
                handler(this, args);
            }
        }
Exemplo n.º 2
0
        private void DataSourceViewInserted(object sender, CrmDataSourceViewInsertedEventArgs e)
        {
            var insertedEventArgs = new CrmEntityFormViewInsertedEventArgs
            {
                EntityId         = e.EntityId,
                Exception        = e.Exception,
                ExceptionHandled = e.ExceptionHandled
            };

            OnItemInserted(insertedEventArgs);
        }