Exemplo n.º 1
0
        ////////////////////////////////////////////////

        /// <summary>
        /// This is called to check whether the user has assigned an event handler to
        /// catch data modification.
        /// </summary>
        /// <returns></returns>
        private bool CanModifyData()
        {
            if (__IN_UPDATE__)
            {
                return(false);
            }

            bool result = true;

            if (ValueModificationQuery != null)
            {
                DataModificationArgs e = new DataModificationArgs(__BINDING__);
                ValueModificationQuery(this, e);
                result = e.AllowChange;
            }

            return(result);
        }
Exemplo n.º 2
0
 protected virtual void ValueModifiedQuery(object sender, DataModificationArgs e)
 {
 }
Exemplo n.º 3
0
 private void mo_ValueModified(object sender, DataModificationArgs e)
 {
     ValueModifiedQuery(sender, e);
 }