Added First version of Process Manager in Client App

Added Javascript TestPage in wwwroot
This commit is contained in:
CMS3762\carminatini
2017-12-07 09:17:29 +01:00
parent 512a2200c6
commit e043ae2181
27 changed files with 1121 additions and 656 deletions
+11 -4
View File
@@ -16,13 +16,14 @@ namespace Step.UI
public partial class ServerControlWindow : Form
{
String HomePageUI;
String TestJSPageUI;
public ServerControlWindow()
{
InitializeComponent();
HomePageUI = "http://localhost:" + ServerConfig.ServerPort.ToString() + "/index.html";
TestJSPageUI = "http://localhost:" + ServerConfig.ServerPort.ToString() + "/Testjavascript//index.html";
MessageServices.Current.Subscribe(SEND_MESSAGE, (a, b) =>
{
// Cast object to ErrorMessageModel
@@ -79,7 +80,7 @@ namespace Step.UI
private void OpenUiButton_Click(object sender, EventArgs e)
{
//Open CMS Client
StartCMSClient();
StartCMSClient(HomePageUI);
}
private void StopServerButton_Click(object sender, EventArgs e)
@@ -101,7 +102,7 @@ namespace Step.UI
}
private void StartCMSClient()
private void StartCMSClient(string url)
{
//Setup the Path Variable
String CMSClientPath = "";
@@ -114,10 +115,16 @@ namespace Step.UI
CMSClientPath = Environment.CurrentDirectory + @"\Client\x86\CMS_Client.exe";
if(!String.IsNullOrEmpty(CMSClientPath))
Process.Start(CMSClientPath, HomePageUI);
Process.Start(CMSClientPath, url);
else
MessageBox.Show("CMS_Client.Exe not found");
}
private void TestJSButton_Click(object sender, EventArgs e)
{
StartCMSClient(TestJSPageUI);
}
}
}