private void editButton_Click(object sender, EventArgs e) { string firstname = userListView.SelectedItems[0].SubItems[0].Text; string lastname = userListView.SelectedItems[0].SubItems[1].Text; string username = userListView.SelectedItems[0].SubItems[2].Text; string email = userListView.SelectedItems[0].SubItems[3].Text; string typ = userListView.SelectedItems[0].SubItems[4].Text; NewUserWindow nuw = new NewUserWindow(firstname, lastname, username, email, typ); nuw.ShowDialog(); userListView.Items.Clear(); fillListView(); }
private void newUserButton_Click(object sender, EventArgs e) { Windows.NewUserWindow nuw = new NewUserWindow(); nuw.ShowDialog(); }