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.Integration.Observables; using Tango.MachineStudio.Common; using Tango.MachineStudio.Stubs.Views; using Tango.SharedUI.Helpers; namespace Tango.MachineStudio.Stubs { /// /// Represents a stubs execution Machine Studio module capable of executing stubs against the current connected machine using a C# script engine. /// /// public class StubsModule : IStudioModule { private bool _isLoaded; /// /// Gets the module name. /// public string Name => "Stubs"; /// /// Gets the module description. /// public string Description => "Execute machine tests using an interactive C# scripting editor"; /// /// Gets the module cover image. /// public BitmapSource Image => ResourceHelper.GetImageFromResources("Images/stubs.jpg"); /// /// Gets the module entry point view. /// public FrameworkElement MainView => new MainView(); /// /// Sets a value indicating whether this module is loaded. /// public bool IsLoaded { get => _isLoaded; set => _isLoaded = value; } /// /// Gets the permission required to see and load this module. /// public Permissions Permission => Permissions.RunSynchronizationModule; /// /// 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() { //throw new NotImplementedException(); } /// /// Perform any operations required to initialize this module. /// public void Initialize() { //throw new NotImplementedException(); } } }