示例#1
0
 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();
     }
 }
示例#2
0
 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();
     }
 }