private void AddProgramButton_Click(object sender, EventArgs e) { var form = new AddArgosProgramForm(Investigator); form.DatabaseChanged += (o, x) => ArgosDataChanged(); form.Show(this); }
private void AddProgram_Click(object sender, EventArgs e) { var form = new AddArgosProgramForm(Investigator); NextButton.Enabled = false; form.DatabaseChanged += (o, a) => { NextButton.Click -= AddProgram_Click; NextButton.Click += NextButton_Click; }; form.ShowDialog(); NextButton.Enabled = true; }