aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/MachineOperatorChangedEventArgs.cs
blob: 3106818682b6ced9a31f16fb9bb5a326593ee684 (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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Integration.Operation;

namespace Tango.PPC.Common.Connection
{
    /// <summary>
    /// Represents the <see cref="IMachineProvider.MachineOperatorChanged"/> event arguments.
    /// </summary>
    /// <seealso cref="System.EventArgs" />
    public class MachineOperatorChangedEventArgs : EventArgs
    {
        /// <summary>
        /// Gets the old machine operator.
        /// </summary>
        public IMachineOperator OldMachineOperator { get; private set; }

        /// <summary>
        /// Gets the new machine operator.
        /// </summary>
        public IMachineOperator MachineOperator { get; private set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="MachineOperatorChangedEventArgs"/> class.
        /// </summary>
        /// <param name="oldOperator">The old operator.</param>
        /// <param name="newOperator">The new operator.</param>
        public MachineOperatorChangedEventArgs(IMachineOperator oldOperator, IMachineOperator newOperator)
        {
            OldMachineOperator = oldOperator;
            MachineOperator = newOperator;
        }
    }
}