From 1383a3210016e5f9c14aa232cd9bd53005774483 Mon Sep 17 00:00:00 2001 From: Roy Date: Thu, 27 Oct 2022 18:58:41 +0300 Subject: Implemented Twine Studio user management. --- Software/Visual_Studio/PPC/Tango.PPC.Common/PPCSettings.cs | 6 ++++++ .../RemoteJobUpload/DefaultRemoteJobUploadService.cs | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'Software/Visual_Studio/PPC') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCSettings.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCSettings.cs index ba7499cc1..cb90442eb 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCSettings.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCSettings.cs @@ -339,6 +339,11 @@ namespace Tango.PPC.Common } } + /// + /// Gets or sets a value indicating whether to enable remote job uploads. + /// + public bool EnableRemoteJobUpload { get; set; } + /// /// Gets the machine service address. /// @@ -404,6 +409,7 @@ namespace Tango.PPC.Common DefaultTabColorSpace = ColorSpaces.CMYK; ScreenSaverStartDuration = 5; EnableScreenSaver = true; + EnableRemoteJobUpload = true; } } } diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJobUpload/DefaultRemoteJobUploadService.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJobUpload/DefaultRemoteJobUploadService.cs index 2883c7086..e7a13a0fc 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJobUpload/DefaultRemoteJobUploadService.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJobUpload/DefaultRemoteJobUploadService.cs @@ -30,7 +30,11 @@ namespace Tango.PPC.Common.RemoteJobUpload public event EventHandler JobReceived; - public bool Enabled { get; set; } = true; + public bool Enabled + { + get { return _settings.EnableRemoteJobUpload; } + set { _settings.EnableRemoteJobUpload = value; } + } public DefaultRemoteJobUploadService(IPPCExternalBridgeService externalBridge) { -- cgit v1.3.1