Client: Fixed form Behaviour

Linked Form-Manager to javascript engine
This commit is contained in:
CMS3762\carminatini
2018-01-16 09:09:21 +01:00
parent befc064f56
commit 290c5afb19
10 changed files with 538 additions and 537 deletions
+3 -1
View File
@@ -97,7 +97,9 @@ namespace CMS_Client.View
NcFrm.Show();
}
}
//Refresh Browser Paint
Browser.Refresh();
}
+1
View File
@@ -482,6 +482,7 @@ namespace Step.UI
this.metroLabel1.TabIndex = 34;
this.metroLabel1.Text = "Vendor:";
this.metroLabel1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.metroLabel1.Click += new System.EventHandler(this.metroLabel1_Click);
//
// ThreadsInfo
//
+5
View File
@@ -225,5 +225,10 @@ namespace Step.UI
});
}
private void metroLabel1_Click(object sender, EventArgs e)
{
}
}
}
+20 -22
View File
File diff suppressed because one or more lines are too long
+33 -31
View File
File diff suppressed because one or more lines are too long
+11 -11
View File
File diff suppressed because one or more lines are too long
+11 -11
View File
File diff suppressed because one or more lines are too long
+11 -11
View File
File diff suppressed because one or more lines are too long
+431 -449
View File
File diff suppressed because one or more lines are too long
+12 -1
View File
@@ -3,8 +3,19 @@ import { ModalHelper } from "./modules/base-components";
import { UserInfoDialog, MachineInfoDialog, AxesCalibration } from "./app.modules";
declare let cmsClient: any;
const messageService = Factory.Get(MessageService);
messageService.subscribeToChannel("show-user-info", () => { ModalHelper.ShowModal(UserInfoDialog); });
messageService.subscribeToChannel("show-machine-info", () => { ModalHelper.ShowModal(MachineInfoDialog); });
messageService.subscribeToChannel("show-axes-calibration", () =>{ ModalHelper.ShowModal(AxesCalibration);})
messageService.subscribeToChannel("show-axes-calibration", () =>{ ModalHelper.ShowModal(AxesCalibration);});
if(typeof cmsClient != "undefined"){
messageService.subscribeToChannel("close", () =>{ cmsClient.closeForm();});
messageService.subscribeToChannel("hide", () =>{ cmsClient.minimizeForm();});
}
else{
messageService.subscribeToChannel("close", () =>{ alert("Function not allowed for this Browser");});
messageService.subscribeToChannel("hide", () =>{ alert("Function not allowed for this Browser");});
}