Beispiel #1
0
        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);
        }
Beispiel #2
0
        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;
 }
Beispiel #4
0
        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;
        }
 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 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);
 }