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
{
///
/// Invoked when the user has opened an entity for editing.
///
///
public class OpenEntityEditViewMessage : IStudioMessage
{
///
/// Gets or sets the dialog open mode.
///
public DialogOpenMode DialogOpenMode { get; set; }
///
/// Gets or sets the context.
///
public ViewModel Context { get; set; }
///
/// Gets or sets the type of the entity.
///
public Type EntityType { get; set; }
///
/// Initializes a new instance of the class.
///
/// The mode.
/// The context.
/// Type of the entity.
public OpenEntityEditViewMessage(DialogOpenMode mode, ViewModel context, Type entityType)
{
DialogOpenMode = mode;
Context = context;
EntityType = entityType;
}
}
}