private void button1_Click(object sender, EventArgs e) { UserForm userForm = new UserForm(); userForm.ShowDialog(); client = userForm.SelectedClient; if (client!=null) { clientTBox.Text = ""; for (int i = 1; i < 4; i++) clientTBox.Text += client.Cells[i].Value.ToString() + " "; } }
public void SaveParent(UserForm parent) { this.parent = parent; }
private void openUserBtn_Click(object sender, EventArgs e) { UserForm uf = new UserForm(); uf.Show(); }