aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common
diff options
context:
space:
mode:
authorRoy <Roy.mail.net@gmail.com>2022-10-27 18:58:41 +0300
committerRoy <Roy.mail.net@gmail.com>2022-10-27 18:58:41 +0300
commit1383a3210016e5f9c14aa232cd9bd53005774483 (patch)
tree697c80780a55753ea5076fd8246c5bc8f7fe093a /Software/Visual_Studio/PPC/Tango.PPC.Common
parent3f32716c553a5f13770c38b3a49c81259ac4ba08 (diff)
downloadTango-1383a3210016e5f9c14aa232cd9bd53005774483.tar.gz
Tango-1383a3210016e5f9c14aa232cd9bd53005774483.zip
Implemented Twine Studio user management.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/PPCSettings.cs6
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/RemoteJobUpload/DefaultRemoteJobUploadService.cs6
2 files changed, 11 insertions, 1 deletions
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
@@ -340,6 +340,11 @@ namespace Tango.PPC.Common
}
/// <summary>
+ /// Gets or sets a value indicating whether to enable remote job uploads.
+ /// </summary>
+ public bool EnableRemoteJobUpload { get; set; }
+
+ /// <summary>
/// Gets the machine service address.
/// </summary>
/// <returns></returns>
@@ -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<RemoteJobReceivedEventArgs> JobReceived;
- public bool Enabled { get; set; } = true;
+ public bool Enabled
+ {
+ get { return _settings.EnableRemoteJobUpload; }
+ set { _settings.EnableRemoteJobUpload = value; }
+ }
public DefaultRemoteJobUploadService(IPPCExternalBridgeService externalBridge)
{