private void selectButton_Click(object sender, EventArgs e) { if (this.secondaryObjectSelection.SelectedIndex != -1) { this.Hide(); Form nextForm = new NavigatieScherm(this, this.secondaryObjectSelection.SelectedItem as IDatabaseObject); nextForm.Show(); } }
private void selectButton_Click(object sender, EventArgs e) { if (this.secondaryObjectSelection.SelectedIndex != -1) { this.Hide(); Form nextForm; if (this.databaseObject.GetType().Equals(typeof(Vak))) { nextForm = new BoekEdit(this, this.secondaryObjectSelection.SelectedItem as IDatabaseObject); } else { nextForm = new NavigatieScherm(this, this.secondaryObjectSelection.SelectedItem as IDatabaseObject); } nextForm.Show(); } }