This commit is contained in:
gongxh
2022-05-19 13:16:37 +08:00
parent 972124f446
commit f5190d70ce
2 changed files with 17 additions and 9 deletions

View File

@@ -97,10 +97,12 @@ namespace CleanMachineHMI
// GlobalHelper.RoleMenuPermission = LeadDbHelperSQLite.Query(sql).Tables[0];
Global.RoleMenuPermission = new CleanMachine.BLL.SYS.RoleMenuPermissionBLL().GetList(_user.RoleId).ToList();
if (Global.MainFormNew == null)
{
Global.MainFormNew = new frmMainNew();
}
Global.MainFormNew.Show();
}
else
{

View File

@@ -172,8 +172,11 @@ namespace CleanMachineHMI
private void frmMainNew_Load(object sender, EventArgs e)
{
#if RELEASE
try
{
#endif
this.SetFormControlText();
SwitchFrmMenu = new dlgSwitchFrmMenu(AddFrmMenuPage);
@@ -309,11 +312,14 @@ namespace CleanMachineHMI
RemoveMaintainingFlag = new dlgShowMessage(ClearMaintainingFlag);
timer.Enabled = true;
InitControl();
#if RELEASE
}
catch (Exception ex)
{
KryptonMessageBox.Show(ex.Message);
}
#endif
}
private void ClearMaintainingFlag()
{