//////////////////////////////////////////////// /// <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); }
protected virtual void ValueModifiedQuery(object sender, DataModificationArgs e) { }
private void mo_ValueModified(object sender, DataModificationArgs e) { ValueModifiedQuery(sender, e); }