using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media.Imaging;
using Tango.DAL.Observables;
using Tango.MachineStudio.Common;
using Tango.MachineStudio.MachineDesigner.Views;
using Tango.SharedUI.Helpers;
namespace Tango.MachineStudio.MachineDesigner
{
///
/// Represents a machine designer Machine Studio module providing an interactive GUI for managing machine configurations.
///
///
public class MachineDesignerModule : IStudioModule
{
private bool _isLoaded;
///
/// Gets the module name.
///
public string Name => "Machine Designer";
///
/// Gets the module description.
///
public string Description => "Provides a graphical control over machine configurations. Create, manage and deploy machine configurations using simple drag and drop interface.";
///
/// Gets the module cover image.
///
public BitmapSource Image => ResourceHelper.GetImageFromResources("Images/machine-designer-module.jpg");
///
/// Sets a value indicating whether this module is loaded.
///
public bool IsLoaded { get => _isLoaded; set => _isLoaded = value; }
///
/// Gets the module entry point view.
///
public FrameworkElement MainView => new MainView();
///
/// Gets the permission required to see and load this module.
///
public Permissions Permission => Permissions.RunMachineDesignerModule;
///
/// Gets a value indicating whether this module has been initialized.
///
public bool IsInitialized => true;
///
/// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
///
public void Dispose()
{
}
///
/// Perform any operations required to initialize this module.
///
public void Initialize()
{
}
}
}