private void add_Record_Click(object sender, EventArgs e)
        {
            var add = new JournalRecordData();

            add.ShowDialog();
            journalRecordTableAdapter.Fill(schoolCourseDataSet.JournalRecord);
            schoolCourseDataSet.AcceptChanges();
        }
        private void edit_Record_Click(object sender, EventArgs e)
        {
            var ds = new SchoolCourseDataSet.JournalRecordDataTable();

            journalRecordTableAdapter.FillBy2(ds, Convert.ToInt32(recordsDataGridView.SelectedRows[0].Cells[0].Value));
            object[] row = ds.Rows[0].ItemArray;
            var      edt = new JournalRecordData(Convert.ToInt32(row[0]),
                                                 Convert.ToInt32(row[1]),
                                                 Convert.ToInt32(row[2]),
                                                 Convert.ToInt32(row[3]));

            edt.ShowDialog();
            journalRecordTableAdapter.Fill(schoolCourseDataSet.JournalRecord);
            schoolCourseDataSet.AcceptChanges();
        }
示例#3
0
        private void add_Record_Click(object sender, EventArgs e)
        {
            var add = new JournalRecordData();

            add.ShowDialog();
        }