Example #1
0
 /// <summary>
 /// Construct by copy
 /// </summary>
 /// <param name="copy">object to clone</param>
 public DataObjectCompatibleEventArgs(DataObjectCompatibleEventArgs copy)
 {
     Action           = copy.Action;
     Direction        = copy.Direction;
     Method           = copy.Method;
     Source           = copy.Source;
     Data             = copy.Data;
     SourceParent     = copy.SourceParent;
     SourceCollection = copy.SourceCollection;
     SourceIndex      = copy.SourceIndex;
     Destination      = copy.Destination;
     DestinationIndex = copy.DestinationIndex;
     DestinationName  = copy.DestinationName;
     Preliminary      = copy.Preliminary;
     Handled          = copy.Handled;
     SourceHandled    = copy.SourceHandled;
 }
Example #2
0
 /// <summary>
 /// Construct from a source
 /// </summary>
 /// <param name="method">sytem triggering an action being applied on a DataObjectCompatible</param>
 /// <param name="action">action being done on the actual DataObjectCompatible</param>
 /// <param name="preliminary">preliminary call or source</param>
 /// <param name="source">Data representing the source</param>
 /// <param name="data">IDataObject representation of the source</param>
 /// <param name="sourceParent">Data representing the parent of the source</param>
 /// <param name="sourceCollection">Data representing the collection where the source is</param>
 /// <param name="sourceIndex">Index in the SourceCollection where the action has been initiated (-1 if not applicable)</param>
 public DataObjectCompatibleEventArgs(
     DataObjectMethod method,
     DataObjectAction action,
     bool preliminary,
     object source,
     IDataObject data,
     object sourceParent,
     IEnumerable sourceCollection,
     int sourceIndex
     )
 {
     Direction        = DataObjectDirection.From;
     Action           = action;
     Method           = method;
     Preliminary      = preliminary;
     Source           = source;
     Data             = data;
     SourceParent     = sourceParent;
     SourceCollection = sourceCollection;
     SourceIndex      = sourceIndex;
 }