From 48071f784b19ea8ed2859fb03642b8cc856406b1 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Sun, 14 Jan 2018 15:49:39 +0200 Subject: Added code comments for: MachineStudio.UI --- .../DefaultStudioApplicationManager.cs | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication') diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs index 36b5074cb..68af7bdc3 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs @@ -17,19 +17,40 @@ using Tango.Logging; namespace Tango.MachineStudio.UI.StudioApplication { + /// + /// Represents the default Machine Studio Application Manager. + /// + /// + /// public class DefaultStudioApplicationManager : ExtendedObject, IStudioApplicationManager { + /// + /// The navigation manager + /// private INavigationManager _navigationManager; + /// + /// Initializes a new instance of the class. + /// + /// The navigation manager. public DefaultStudioApplicationManager(INavigationManager navigationManager) { _navigationManager = navigationManager; } + /// + /// Gets a value indicating whether Machine Studio is shutting down. + /// public bool IsShuttingDown { get; private set; } + /// + /// The connected machine + /// private IExternalBridgeClient _connectedMachine; + /// + /// Gets or sets the currently connected machine if any. + /// public IExternalBridgeClient ConnectedMachine { get { return _connectedMachine; } @@ -48,11 +69,19 @@ namespace Tango.MachineStudio.UI.StudioApplication } } + /// + /// Gets a value indicating whether the is valid and connected through TCP/IP. + /// public bool IsMachineConnectedViaTCP { get { return IsMachineConnected && ConnectedMachine is ExternalBridgeTcpClient; } } + /// + /// Handles the state changed event. + /// + /// The sender. + /// The e. private void ConnectedMachine_StateChanged(object sender, Transport.TransportComponentState e) { if (e == Transport.TransportComponentState.Disconnected || e == Transport.TransportComponentState.Failed) @@ -62,11 +91,17 @@ namespace Tango.MachineStudio.UI.StudioApplication } + /// + /// Gets a value indicating whether the is valid. + /// public bool IsMachineConnected { get { return ConnectedMachine != null; } } + /// + /// Shutdown the application. + /// public async void ShutDown() { if (IsShuttingDown) return; -- cgit v1.3.1