Пример #1
0
        private void fillScoreAndRecordedCourse()
        {
            List <ENOTLAR> notlar = new List <ENOTLAR>();

            notlar = BNOTLAR.Select(Ogrenci.ID1);
            List <EDERSLER> dersler = new List <EDERSLER>();

            if (notlar != null)
            {
                foreach (ENOTLAR not in notlar)
                {
                    not.DERSID1 = BACILANDERSLER.Select(not.ACILANDERS1).ID1;
                    EDERSLER ders = new EDERSLER();
                    ders         = BDERSLER.Select(not.DERSID1);
                    not.DERSADI1 = ders.DERS1;
                    dersler.Add(ders);
                }

                dataGridView1.DataSource         = notlar;
                dataGridView1.Columns[0].Visible = false;
                dataGridView1.Columns[1].Visible = false;
                dataGridView1.Columns[3].Visible = false;
                dataGridView1.Columns[8].Visible = false;


                dataGridView2.DataSource         = dersler;
                dataGridView2.Columns[0].Visible = false;
                dataGridView2.Columns[3].Visible = false;
                dataGridView2.Columns[4].Visible = false;
                dataGridView2.Columns[5].Visible = false;
                dataGridView2.Columns[6].Visible = false;
                dataGridView2.Columns[7].Visible = false;
            }
        }
Пример #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     foreach (DataGridViewRow row in dataGridView2.SelectedRows)
     {
         int            dersID     = Convert.ToInt32(row.Cells[0].Value);
         EACILANDERSLER acilanDers = new EACILANDERSLER();
         acilanDers = BACILANDERSLER.Select(dersID);
         int durum = BNOTLAR.Delete(acilanDers.ID1);
         if (durum == 0)
         {
             MessageBox.Show("Ders Bırakma Zamanı Geçmiştir!");
         }
     }
     fillScoreAndRecordedCourse();
 }