private void Initialize()
 {
     textBox_IdUser.Enabled = false;
     try
     {
         textBox_IdUser.Text = (_libraryPresenter.GetUsers().Last().UserId + 1).ToString();
     }
     catch
     {
         textBox_IdUser.Text = "1";
     }
 }
 public bool PhoneExist(string text)
 {
     foreach (IUser user in _libraryPresenter.GetUsers())
     {
         if (user.PhoneNumber.Equals(text))
         {
             return(true);
         }
     }
     return(false);
 }
Beispiel #3
0
 public void DisplayAllUsers()
 {
     dataGridViewForUsers.DataSource = GetUserDataFromList(_libraryPresenter.GetUsers());
 }
 public UserSearchHelper(ILibraryPresenter presenter)
 {
     this.presenter = presenter;
     usersList      = presenter.GetUsers();
 }