aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Web/LatestVersionRequest.cs
blob: 59bb71db4c5e6c75b8bdf25d3db99d90bc8ac5c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
using Tango.Transport.Web;

namespace Tango.MachineStudio.Common.Web
{
    public class LatestVersionRequest : WebRequestMessage
    {
        
    }
}
} /* Literal.Number.Integer.Long */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using Tango.Integration.Services;

namespace Tango.MachineStudio.Common.StudioApplication
{
    /// <summary>
    /// Represents the Machine Studio application manager.
    /// </summary>
    public interface IStudioApplicationManager
    {
        /// <summary>
        /// Occurs when the connected machine property has changed.
        /// </summary>
        event EventHandler<IExternalBridgeClient> ConnectedMachineChanged;

        /// <summary>
        /// Gets a value indicating whether Machine Studio is shutting down.
        /// </summary>
        bool IsShuttingDown { get; }

        /// <summary>
        /// Shutdown the application.
        /// </summary>
        void ShutDown();

        /// <summary>
        /// Gets or sets the currently connected machine if any.
        /// </summary>
        IExternalBridgeClient ConnectedMachine { get; set; }

        /// <summary>
        /// Gets a value indicating whether the <see cref="ConnectedMachine"/> is valid.
        /// </summary>
        bool IsMachineConnected { get; }

        /// <summary>
        /// Gets a value indicating whether the <see cref="ConnectedMachine"/> is valid and connected through TCP/IP.
        /// </summary>
        bool IsMachineConnectedViaTCP { get; }

        /// <summary>
        /// Loads the specified module if permitted.
        /// </summary>
        /// <param name="moduleName">Name of the module.</param>
        /// <param name="args">The arguments.</param>
        void RequestModule(String moduleName, params object[] args);

        /// <summary>
        /// Gets the machine studio application version.
        /// </summary>
        String Version { get; }

        /// <summary>
        /// Notify the application manager about an external opened window.
        /// When application exists. All registered windows will be closed.
        /// </summary>
        /// <param name="window">The window.</param>
        void RegisterOpenedWindow(Window window);
    }
}