/// <summary> /// Constructs the <see cref="FileItemEventArgs"/> that represent changes to a child. /// </summary> public FileItemEventArgs(FileItemAction action, FileItemBase child, int index = -1) : this(action, index) { Children = new List <FileItemBase> { child }; }
protected void RaiseChanged(FileItemAction action, FileItemBase child, int index) { Changed?.Invoke(this, new FileItemEventArgs(action, child, index)); }
protected void RaiseChanged(FileItemAction action, IEnumerable <FileItemBase> children, int index) { Changed?.Invoke(this, new FileItemEventArgs(action, children, index)); }
protected void RaiseChanged(FileItemAction action) { Changed?.Invoke(this, new FileItemEventArgs(action)); }
/// <summary> /// Constructs the <see cref="FileItemEventArgs"/> that represent changes to children. /// </summary> public FileItemEventArgs(FileItemAction action, IEnumerable <FileItemBase> children, int index = -1) : this(action, index) { Children = children.ToList(); }
/// <summary> /// Constructs the <see cref="FileItemEventArgs"/> that represent changes to children. /// </summary> public FileItemEventArgs(FileItemAction action, List <FileItemBase> children, int index = -1) : this(action, index) { Children = children; }
/// <summary> /// Constructs the <see cref="FileItemEventArgs"/> that require an action and index. /// </summary> public FileItemEventArgs(FileItemAction action, int index) { Action = action; Index = index; }
/// <summary>Constructs the <see cref="FileItemEventArgs"/> that just require an action.</summary> public FileItemEventArgs(FileItemAction action) : this(action, -1) { }