private void InfoProgramButton_Click(object sender, EventArgs e) { var program = ((ProgramListItem)ProgramsListBox.SelectedItem).Program; var form = new ArgosProgramDetailsForm(program); form.DatabaseChanged += (o, x) => ArgosDataChanged(); form.Show(this); }
private void ProgramDownloadsButton_Click(object sender, EventArgs e) { var form = new ArgosProgramDetailsForm(Platform.ArgosProgram); form.DatabaseChanged += (o, x) => DownloadsChanged(); form.Show(); form.ArgosProgramTabControl.SelectedIndex = 2; }
private void AddPlatform_Click(object sender, EventArgs e) { //FIXME - how do I get the new program?? var form = new ArgosProgramDetailsForm(Investigator.ArgosPrograms.FirstOrDefault()); NextButton.Enabled = false; form.DatabaseChanged += (o, a) => { NextButton.Click -= AddPlatform_Click; NextButton.Click += NextButton_Click; }; form.ShowDialog(); NextButton.Enabled = true; }