static void Main(string[] args) { users = (Users) Serialize.Deserialization("111.mdb",users); users.ClearStatus(); // Создадим новый сервер на порту 80 new Server(25565); }
/// <summary> /// Create a new Users object. /// </summary> /// <param name="userID">Initial value of the UserID property.</param> public static Users CreateUsers(global::System.Int32 userID) { Users users = new Users(); users.UserID = userID; return users; }
/// <summary> /// Deprecated Method for adding a new object to the Users EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToUsers(Users users) { base.AddObject("Users", users); }
public Users GetOnline() { Users tempOnlineUsers = new Users(); for (int i = 0; i < usersList.Count; i++) { if (usersList[i].status != 0) tempOnlineUsers.usersList.Add(usersList[i]); } return tempOnlineUsers; }