private void addButton_Click(object sender, EventArgs e)
 {
     ua = new UserAdd();
     if (uu.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         UserDetails ud = uu.getUser();
         userList.Add(ud);
         listView1.Items.Add(ud.username);
     }
 }
 private void addButton_Click(object sender, EventArgs e)
 {
     ua = new UserAdd();
     if (uu.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         UserDetails ud = uu.getUser();
         userList.Add(ud);
         listView1.Items.Add(ud.username);
     }
 }