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(); }
public void RemoveUser(User user) { users.Remove(user); }
public void AddUser(User user) { users.Add(user); }
private void ListenerThread() { while (true) { var user = new User(listener.AcceptSocket()); user.OnAuthenticated += User_OnAuthenticated; user.Authenticate(); Thread.Sleep(512); } }
public static void UpdateUser(User u) { m_database.UpdateUser(u); }
public static void InsertUser(User u) { m_database.InsertUser(u); }
public void UpdateUser(User user) { }
public User SelectUser(string name) { User usr = new User(null); return usr; }