Exemple #1
0
        private void add_Participation_Click(object sender, EventArgs e)
        {
            var add = new AdditionalParticipation();

            add.ShowDialog();
            additionalParticipationTableAdapter.Fill(schoolCourseDataSet.AdditionalParticipation);
            schoolCourseDataSet.AcceptChanges();
        }
Exemple #2
0
        private void edit_Participation_Click(object sender, EventArgs e)
        {
            var ds = new SchoolCourseDataSet.AdditionalParticipationDataTable();

            additionalParticipationTableAdapter.FillBy2(ds,
                                                        Convert.ToInt32(participationDataGridView.SelectedRows[0].Cells[0].Value),
                                                        Convert.ToInt32(participationDataGridView.SelectedRows[0].Cells[1].Value));
            object[] row = ds.Rows[0].ItemArray;
            var      edt = new AdditionalParticipation(Convert.ToInt32(row[0]),
                                                       Convert.ToInt32(row[1]),
                                                       Convert.ToInt32(row[2]));

            edt.ShowDialog();
            additionalParticipationTableAdapter.Fill(schoolCourseDataSet.AdditionalParticipation);
            schoolCourseDataSet.AcceptChanges();
        }