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;
}
}
}