Example #1
0
 /// <summary>
 ///     记录属性修改
 /// </summary>
 /// <param name="propertyName">属性</param>
 protected virtual void RecordModifiedInner(string propertyName)
 {
     if (!this.ModifiedProperties.Contains(propertyName))
     {
         this.ModifiedProperties.Add(propertyName);
     }
     if (!Arrest.HasFlag(EditArrestMode.InnerLogical))
     {
         this.EditObject.OnModified(propertyName);
     }
 }
Example #2
0
        /// <summary>
        ///     记录属性修改
        /// </summary>
        /// <param name="propertyIndex">属性</param>
        private void RecordModifiedInner(int propertyIndex)
        {
            //Trace.WriteLine(string.Format("{1} => Modified:{0}", EditObject.__Struct.Properties[propertyIndex].PropertyName, EditObject.GetValue(EditObject.__Struct.PrimaryKey)),
            //    EditObject.GetType().Name);

            SetModified(propertyIndex);
            if (!Arrest.HasFlag(EditArrestMode.InnerLogical))
            {
                EditObject.OnModified(propertyIndex);
            }
        }
Example #3
0
 /// <summary>
 ///     记录属性修改
 /// </summary>
 /// <param name="propertyName">属性</param>
 internal protected void RecordModified(string propertyName)
 {
     if (!Arrest.HasFlag(EditArrestMode.RecordChanged))
     {
         RecordModifiedInner(propertyName);
     }
     if (!Arrest.HasFlag(EditArrestMode.InnerLogical))
     {
         this.EditObject.OnModified(propertyName);
     }
 }
Example #4
0
 /// <summary>
 ///     记录属性修改
 /// </summary>
 /// <param name="propertyIndex">属性</param>
 internal void RecordModified(int propertyIndex)
 {
     if (!Arrest.HasFlag(EditArrestMode.RecordChanged))
     {
         RecordModifiedInner(propertyIndex);
     }
     if (!Arrest.HasFlag(EditArrestMode.InnerLogical))
     {
         EditObject.OnModified(propertyIndex);
     }
 }