private void PlayTour(object sender, EventArgs e) { tourAsociado.viewFlag = false; MenuForm2 parent = this.Parent as MenuForm2; parent.PlayTour(this.tourAsociado); }
private void PlayTour(object sender, EventArgs e) { DialogResult result1 = MessageBox.Show(Constants.InitiateTourConfirmation1 + tourAsociado.name + Constants.InitiateTourConfirmation2, Constants.InitiateTourTitle, MessageBoxButtons.YesNo); if (result1 == DialogResult.Yes) { MenuForm2 parent = this.Parent as MenuForm2; parent.PlayTour(this.tourAsociado); } }