private void AddProject_Click(object sender, EventArgs e) { //TODO Fix AddProjectForm to take a PI var form = new AddProjectForm(); //Investigator); NextButton.Enabled = false; form.DatabaseChanged += (o, a) => { NextButton.Click -= AddProject_Click; NextButton.Click += NextButton_Click; }; form.ShowDialog(); NextButton.Enabled = true; }
private void AddProjectButton_Click(object sender, EventArgs e) { var form = new AddProjectForm(); form.DatabaseChanged += (o, x) => ProjectDataChanged(); form.Show(this); }