From b27a2ae24487709a880582867170ae3aa5ce33a5 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Thu, 17 May 2018 14:32:22 +0300 Subject: Working on PanelPC project. --- .../DefaultPanelPCApplicationManager.cs | 48 ++++++++++++++++++++++ .../IPanelPCApplicationManager.cs | 42 +++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/PanelPCApplication/DefaultPanelPCApplicationManager.cs create mode 100644 Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/PanelPCApplication/IPanelPCApplicationManager.cs (limited to 'Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/PanelPCApplication') diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/PanelPCApplication/DefaultPanelPCApplicationManager.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/PanelPCApplication/DefaultPanelPCApplicationManager.cs new file mode 100644 index 000000000..aa36bb9cd --- /dev/null +++ b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/PanelPCApplication/DefaultPanelPCApplicationManager.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Integration.Operation; + +namespace Tango.PanelPC.UI.PanelPCApplication +{ + public class DefaultPanelPCApplicationManager : IPanelPCApplicationManager + { + public bool IsShuttingDown + { + get + { + throw new NotImplementedException(); + } + } + + public IMachineOperator ConnectedMachine + { + get + { + throw new NotImplementedException(); + } + + set + { + throw new NotImplementedException(); + } + } + + public string Version + { + get + { + throw new NotImplementedException(); + } + } + + public event EventHandler ConnectedMachineChanged; + + public void ShutDown() + { + throw new NotImplementedException(); + } + } +} diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/PanelPCApplication/IPanelPCApplicationManager.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/PanelPCApplication/IPanelPCApplicationManager.cs new file mode 100644 index 000000000..fd5b68f3c --- /dev/null +++ b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/PanelPCApplication/IPanelPCApplicationManager.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using Tango.Integration.Operation; +using Tango.Integration.Services; + +namespace Tango.PanelPC.UI.PanelPCApplication +{ + /// + /// Represents the Machine Studio application manager. + /// + public interface IPanelPCApplicationManager + { + /// + /// Occurs when the connected machine property has changed. + /// + event EventHandler ConnectedMachineChanged; + + /// + /// Gets a value indicating whether Machine Studio is shutting down. + /// + bool IsShuttingDown { get; } + + /// + /// Shutdown the application. + /// + void ShutDown(); + + /// + /// Gets or sets the currently connected machine if any. + /// + IMachineOperator ConnectedMachine { get; set; } + + /// + /// Gets the machine studio application version. + /// + String Version { get; } + } +} -- cgit v1.3.1