private void frm_Operation_Load(object sender, EventArgs e) { try { UASUtility.UpdateUIDisplayByAuthority(mainForm.app, this); uc_SP_TransferManagement1.initUI(); uc_SP_SystemModeControl1.initUI(); uc_SP_PathControlList1.initUI(); } catch (Exception ex) { logger.Error(ex, "Exception"); } }
private void frm_Maintenance_Load(object sender, EventArgs e) { try { UASUtility.UpdateUIDisplayByAuthority(mainForm.app, this); uc_SP_MTLMTSMaintenance1.initUI(); uc_SP_VehicleManagement1.initUI(); uc_SP_PortMaint1.initUI(); uc_SP_AlarmMaintenance1.initUI(); } catch (Exception ex) { logger.Error(ex, "Exception"); } }
private void Window_Loaded(object sender, RoutedEventArgs e) { try { app = ohxc.winform.App.WindownApplication.getInstance(); if (!UASUtility.isLogin(app)) //系統無USER登入時,不允許開啟密碼變更介面 { return; } txt_UserID.Text = app.LoginUserID; //顯示當前登入者ID password_box.Focus(); //將游標指定在密碼位置 registerEvent(); System.Windows.Input.InputMethod.SetIsInputMethodEnabled(txt_UserID, false); //設置IME和輸入是否可以是中文 } catch (Exception ex) { logger.Error(ex, "Exception"); } }
private void frm_Operation_VisibleChanged(object sender, EventArgs e) { UASUtility.UpdateUIDisplayByAuthority(mainForm.app, this); }