public class LoginInfo { /// /// 此静态类用于存储用户名 /// private static LoginInfo FLoginInfo = null;
public int UserID = 0;
public string UserName = "";
public LoginInfo() { }
public static LoginInfo GetLoginInfo() { return GetLoginInfo(0, ""); }
public static LoginInfo GetLoginInfo(int userID, string userName)
{ if (FLoginInfo == null) {
FLoginInfo = new LoginInfo();
FLoginInfo.UserID = userID;
FLoginInfo.UserName = userName;
}
return FLoginInfo;
}
网友评论