Various Control Panel fixes

Readded calls to Init* functions
Fixes trying to get service version from ITGSService
Removes calls Load* function in Init* functions
This commit is contained in:
Cyberboss
2017-11-12 00:36:27 -05:00
parent 5b88ac18bb
commit db5cd16ccf
4 changed files with 6 additions and 6 deletions
+5 -1
View File
@@ -33,7 +33,7 @@ namespace TGControlPanel
Interface = I;
if (Interface.IsRemoteConnection)
{
var splits = Interface.GetComponent<ITGSService>().Version().Split(' ');
var splits = Interface.GetServiceComponent<ITGLanding>().Version().Split(' ');
Text = String.Format("TGS {0}: {1}:{2}", splits[splits.Length - 1], Interface.HTTPSURL, Interface.HTTPSPort);
}
Text += " Instance: " + I.InstanceName;
@@ -44,6 +44,10 @@ namespace TGControlPanel
}
Panels.SelectedIndexChanged += Panels_SelectedIndexChanged;
Panels.SelectedIndex += Math.Min(Properties.Settings.Default.LastPageIndex, Panels.TabCount - 1);
InitRepoPage();
InitBYONDPage();
InitServerPage();
InitStaticPage();
UpdateSelectedPanel();
InstancesInUse.Add(I.InstanceName, this);
}