private void FxEnter() { Hide(); ImgSplashScreen.Enabled = false; if (ClsVariables.gAuthentication == true) { FrmLogin ObjForm = new FrmLogin(); ObjForm.ShowDialog(); } else { string lUserName = ClsFunctions.FxGetWindowsUserName(); long lUserId = ClsSql.Fx_sel_tblUser_check(lUserName); if (lUserId == 0) { ClsFunctions.FxMessage(1, "Usuario no tiene permisos para ingresar"); } } if (ClsVariables.gUserId > 0) { FrmMainMenu ObjForm = new FrmMainMenu(); ObjForm.ShowDialog(); } FxExit(); }