示例#1
0
 public void InsertUser(User user)
 {
     MySqlCommand cmd = _sqlConnection.CreateCommand();
     cmd.CommandText = string.Format("INSERT INTO `users` (`id`, `username`, `password`, `email`) VALUES (0, '{0:s}', '{1:s}', '{2:s}')", user.Username, user.Password, user.Email);
     cmd.ExecuteNonQuery();
     cmd.Dispose();
 }
示例#2
0
 public void RemoveUser(User user)
 {
     users.Remove(user);
 }
示例#3
0
 public void AddUser(User user)
 {
     users.Add(user);
 }
示例#4
0
        private void ListenerThread()
        {
            while (true)
            {
                var user = new User(listener.AcceptSocket());

                user.OnAuthenticated += User_OnAuthenticated;

                user.Authenticate();

                Thread.Sleep(512);
            }
        }
示例#5
0
 public static void UpdateUser(User u)
 {
     m_database.UpdateUser(u);
 }
示例#6
0
 public static void InsertUser(User u)
 {
     m_database.InsertUser(u);
 }
示例#7
0
 public void UpdateUser(User user)
 {
 }
示例#8
0
        public User SelectUser(string name)
        {
            User usr = new User(null);

            return usr;
        }