private void btnSelectLocation_Click(object sender, EventArgs e) { frmAddLocation SelectLocation = new frmAddLocation("Special Encounter - Select a location", "Choose a location that you want to use for special encounter:", Locations, true); SelectLocation.ShowDialog(); if (!SelectLocation.Selected) return; this.Loc = SelectLocation.Loc; txtLocation.Text = Loc.Name; }
private void btnSelectLocation_Click(object sender, EventArgs e) { frmAddLocation SelectLocation = new frmAddLocation("Special Encounter - Select a location", "Choose a location that you want to use for special encounter:", Locations, true); SelectLocation.ShowDialog(); if (!SelectLocation.Selected) { return; } this.Loc = SelectLocation.Loc; txtLocation.Text = Loc.Name; }