Пример #1
0
 /// <summary>
 /// Construct from source and destination
 /// </summary>
 /// <param name="copy">object to clone (typically representing a source)</param>
 /// <param name="action">action being done on the actual DataObjectCompatible</param>
 /// <param name="destination">Data representing the destination</param>
 /// <param name="destinationIndex">Index in the destination to which the action should be applied</param>
 /// <param name="destinationName">Destination name to be shown when draging over</param>
 public DataObjectCompatibleEventArgs(
     DataObjectCompatibleEventArgs copy,
     DataObjectAction action,
     object destination,
     int destinationIndex,
     string destinationName
     ) : this(copy)
 {
     Direction        = DataObjectDirection.To;
     Action           = action;
     Destination      = destination;
     DestinationIndex = destinationIndex;
     DestinationName  = destinationName;
     Preliminary      = false;
     Handled          = false;
 }
Пример #2
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;
 }