private void Form1_Shown(object sender, EventArgs e) { if (GlobalVars.LoginUser == null) { GlobalVars.LoginUser = commonDAO.GetAdminUser_Cmcs(); } if (GlobalVars.LoginUser != null) { lblLoginUserName.Text = GlobalVars.LoginUser.UserName; } commonDAO.SetSignalDataValue(CommonAppConfig.GetInstance().AppIdentifier, eSignalDataName.系统.ToString(), "1"); }