Cleans up TextPrompt()

This commit is contained in:
Cyberboss
2017-11-01 13:48:33 -04:00
parent 3503453ae9
commit c3075876ce
3 changed files with 6 additions and 8 deletions
+3 -1
View File
@@ -57,7 +57,9 @@ namespace TGControlPanel
Height = 150,
FormBorderStyle = FormBorderStyle.FixedDialog,
Text = caption,
StartPosition = FormStartPosition.CenterScreen
StartPosition = FormStartPosition.CenterScreen,
MaximizeBox = false,
MinimizeBox = false,
};
Label textLabel = new Label() { Left = 50, Top = 20, Text = text, AutoSize = true };
TextBox textBox = new TextBox() { Left = 50, Top = 50, Width = 400 };
+1 -1
View File
@@ -230,7 +230,7 @@ namespace TGServerService
/// </summary>
void SetupService()
{
serviceHost = CreateHost(this, Interface.ServiceInterfaceName);
serviceHost = CreateHost(this, Interface.MasterInterfaceName);
AddEndpoint(serviceHost, typeof(ITGSService));
AddEndpoint(serviceHost, typeof(ITGConnectivity));
serviceHost.Authorization.ServiceAuthorizationManager = new AdministrativeAuthorizationManager(); //only admins can diddle us
+2 -6
View File
@@ -34,11 +34,7 @@ namespace TGServiceInterface
/// <summary>
/// Base name of communication URLs
/// </summary>
const string MasterInterfaceName = "TGStationServerService";
/// <summary>
/// Base name of the root service URLs
/// </summary>
public const string ServiceInterfaceName = MasterInterfaceName + "/Service";
public const string MasterInterfaceName = "TGStationServerService";
/// <summary>
/// Base name of instance URLs
/// </summary>
@@ -323,7 +319,7 @@ namespace TGServiceInterface
/// <exception cref="Exception">Thrown if <typeparamref name="T"/> isn't a valid component <see langword="interface"/></exception>
ChannelFactory<T> CreateChannel<T>(string instanceName)
{
var accessPath = instanceName == null ? ServiceInterfaceName : String.Format("{0}/{1}", InstanceInterfaceName, instanceName);
var accessPath = instanceName == null ? MasterInterfaceName : String.Format("{0}/{1}", InstanceInterfaceName, instanceName);
var InterfaceName = typeof(T).Name;
if (HTTPSURL == null)