Added First version of Process Manager in Client App
Added Javascript TestPage in wwwroot
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user