Пример #1
0
        static void Main(string[] args)
        {
            users = (Users) Serialize.Deserialization("111.mdb",users);

               users.ClearStatus();

            // Создадим новый сервер на порту 80
               new Server(25565);
        }
Пример #2
0
 /// <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;
 }
Пример #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Users EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToUsers(Users users)
 {
     base.AddObject("Users", users);
 }
Пример #4
0
 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;
 }