aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Editors/ElementsEventArgs.cs
blob: 6147128833e5117739e640fc292145446d2e867d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.Editors
{
    /// <summary>
    /// Represents a general <see cref="ElementsEditor"/> event arguments.
    /// </summary>
    /// <seealso cref="System.EventArgs" />
    public class ElementsEventArgs : EventArgs
    {
        /// <summary>
        /// Gets or sets the elements associated with the event.
        /// </summary>
        public List<IElementEditor> Elements { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether to cancel the operation if possible.
        /// </summary>
        public bool Cancel { get; set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="ElementsEventArgs"/> class.
        /// </summary>
        public ElementsEventArgs()
        {
            Elements = new List<IElementEditor>();
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="ElementsEventArgs"/> class.
        /// </summary>
        /// <param name="elements">The elements.</param>
        public ElementsEventArgs(List<IElementEditor> elements) : this()
        {
            Elements = elements;
        }
    }
}