public PlayerEditControl(Object param) { InitializeComponent(); editMode = true; editUser = (PlayerDTO)param; DrawEditUserInfo(); presenter = new PlayerPresenter(new PlayerControl()); }
public void EditUser(PlayerDTO user) { usersRepository.Update(user); UpdateUsersList(); }
public void AddUser(PlayerDTO newUser) { usersRepository.Add(newUser); UpdateUsersList(); }