Beispiel #1
0
 public void AddUser(string ID, string Username, string Usernick, string email)
 {
     if (UsersList.InvokeRequired)
     {
         ChangeResultsDataSourceCallback CallBack = new ChangeResultsDataSourceCallback(AddUser);
         UsersList.Invoke(CallBack, new object[] { ID, Username, Usernick, email });
     }
     else
     {
         ListViewItem CurItem = UsersList.Items.Add(ID);
         CurItem.SubItems.Add(Username);
         CurItem.SubItems.Add(Usernick);
         CurItem.SubItems.Add(email);
     }
 }