private void button2_Click(object sender, EventArgs e) { ChooseLocation f = new ChooseLocation(); DialogResult result = f.ShowDialog(); if (result == DialogResult.OK) { textBox1.Text = f.LocationSelected; } }
private void chooseLocationBt_Click(object sender, EventArgs e) { ChooseLocation f = new ChooseLocation(); SetInfoLbMessage(""); DialogResult result = f.ShowDialog(); if (result == DialogResult.OK) { locationTb.Text = f.LocationSelected; } }