aboutsummaryrefslogtreecommitdiffstats
path: root/Software/.metadata/.plugins/org.eclipse.core.resources/.history/8c/a0e32344d4900019169dcc75ddc62bb9
stat options
Period:
Authors:

Commits per author per week (path 'Software/.metadata/.plugins/org.eclipse.core.resources/.history/8c/a0e32344d4900019169dcc75ddc62bb9')

AuthorW26 2026W27 2026W28 2026W29 2026Total
Total00000
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.BL.Entities;
using Tango.MachineStudio.Common.Messages;
using Tango.MachineStudio.DB.ViewModels;
using Tango.SharedUI;

namespace Tango.MachineStudio.DB.Messages
{
    /// <summary>
    /// Invoked when the user has opened an entity for editing.
    /// </summary>
    /// <seealso cref="Tango.MachineStudio.Common.Messages.IStudioMessage" />
    public class OpenEntityEditViewMessage : IStudioMessage
    {
        /// <summary>
        /// Gets or sets the dialog open mode.
        /// </summary>
        public DialogOpenMode DialogOpenMode { get; set; }

        /// <summary>
        /// Gets or sets the context.
        /// </summary>
        public ViewModel Context { get; set; }

        /// <summary>
        /// Gets or sets the type of the entity.
        /// </summary>
        public Type EntityType { get; set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="OpenEntityEditViewMessage"/> class.
        /// </summary>
        /// <param name="mode">The mode.</param>
        /// <param name="context">The context.</param>
        /// <param name="entityType">Type of the entity.</param>
        public OpenEntityEditViewMessage(DialogOpenMode mode, ViewModel context, Type entityType)
        {
            DialogOpenMode = mode;
            Context = context;
            EntityType = entityType;
        }
    }
}