32 lines
997 B
C#
32 lines
997 B
C#
namespace Lattice.Core.DragDrop.Services;
|
|
|
|
/// <summary>
|
|
/// Аргументы события ошибки в операции перетаскивания.
|
|
/// </summary>
|
|
public class DragDropErrorEventArgs : EventArgs
|
|
{
|
|
/// <summary>
|
|
/// Ошибка, которая произошла.
|
|
/// </summary>
|
|
public Exception Exception { get; }
|
|
|
|
/// <summary>
|
|
/// Операция, во время которой произошла ошибка.
|
|
/// </summary>
|
|
public string Operation { get; }
|
|
|
|
/// <summary>
|
|
/// Контекст операции.
|
|
/// </summary>
|
|
public object? Context { get; }
|
|
|
|
/// <summary>
|
|
/// Инициализирует новый экземпляр класса <see cref="DragDropErrorEventArgs"/>.
|
|
/// </summary>
|
|
public DragDropErrorEventArgs(Exception exception, string operation, object? context = null)
|
|
{
|
|
Exception = exception;
|
|
Operation = operation;
|
|
Context = context;
|
|
}
|
|
} |