private void lTripName_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { AddNewTripForm tripForm = new AddNewTripForm(SelectedTrip); tripForm.FormClosed += TripForm_FormClosed; tripForm.ShowDialog(); }
private void bAddNewTrip_Click(object sender, EventArgs e) { addNewTrip = new AddNewTripForm(SelectedTraveler); addNewTrip.AfterAdd += AddNewTrip_AfterAdd; addNewTrip.ShowDialog(); }