private void btnSelect_Click(object sender, EventArgs e) { SelectClient sc = new SelectClient(); DialogResult result = sc.ShowDialog(); if (result == DialogResult.OK) { tbServiceClient.Text = sc.Person; } }
private void btnSelectClient_Click(object sender, EventArgs e) { var sc = new SelectClient(); var result = sc.ShowDialog(); if (result == DialogResult.OK) { tbClient.Text = sc.Person; } }