private void Form1_Shown(object sender, EventArgs e) { if (SelfVars.LoginUser == null) { SelfVars.LoginUser = commonDAO.GetAdminUser(); } if (SelfVars.LoginUser != null) { lblLoginUserName.Text = SelfVars.LoginUser.UserName; } commonDAO.SetSignalDataValue(CommonAppConfig.GetInstance().AppIdentifier, eSignalDataName.序状态.ToString(), "1"); }