private void listBoxUsers_MouseDoubleClick(object sender, MouseEventArgs e) { AddingForm form = new AddingForm(); User user = users[listBoxUsers.SelectedIndex]; form.EditingMethod(user); form.ShowDialog(); }
private void buttonAdd_Click(object sender, EventArgs e) { AddingForm form = new AddingForm(); form.ShowDialog(); }