From e571f20e27c4fca6bb6efe03d6427a1f332f9830 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Sun, 27 May 2018 19:33:15 +0300 Subject: Working on panel pc. --- .../PPCApplication/DefaultPPCApplicationManager.cs | 88 ++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs new file mode 100644 index 000000000..29b9f7823 --- /dev/null +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs @@ -0,0 +1,88 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL; +using Tango.BL.Entities; +using Tango.Integration.Operation; +using Tango.Settings; +using Tango.PPC.Common.Application; +using Tango.Core.DI; +using Tango.PPC.Common; +using System.Windows; +using Tango.Core; + +namespace Tango.PPC.UI.PPCApplication +{ + public class DefaultPPCApplicationManager : ExtendedObject, IPPCApplicationManager + { + 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(); + } + } + + private Machine _machine; + public Machine Machine + { + private set + { + _machine = value; + } + get + { + return _machine; + } + } + + public event EventHandler ConnectedMachineChanged; + + public DefaultPPCApplicationManager() + { + if (!DesignMode) + { + MainWindow.Instance.ContentRendered += (_, __) => + { + foreach (var vm in TangoIOC.Default.GetAllInstancesByBase()) + { + vm.OnApplicationStarted(); + } + }; + } + } + + public void ShutDown() + { + throw new NotImplementedException(); + } + + public void SetMachine(Machine machine) + { + Machine = machine; + } + } +} -- cgit v1.3.1