void linkID_Click(object sender, EventArgs e) { SelectLink selectDialog = new SelectLink(); selectDialog.Owner = Earth3d.MainWindow; selectDialog.Tour = tour; selectDialog.ID = Focus.LinkID; if (selectDialog.ShowDialog() == DialogResult.OK) { Focus.LinkID = selectDialog.ID; } }
void setNextSlide_Click(object sender, EventArgs e) { var selectDialog = new SelectLink(); selectDialog.Owner = Earth3d.MainWindow; selectDialog.Tour = tour; selectDialog.ID = tour.CurrentTourStop.NextSlide; if (selectDialog.ShowDialog() == DialogResult.OK) { tour.CurrentTourStop.NextSlide = selectDialog.ID; } }