private void button1_Click(object sender, EventArgs e) { OgretimGorevlisi.SIFRE1 = textBox1.Text; int guncellenen = BOGRETIMGOREVLISI.Update(OgretimGorevlisi); if (guncellenen == 1) { MessageBox.Show("Kayıt Güncellendi"); } }
private void button1_Click(object sender, EventArgs e) { string numara = textBox1.Text; string sifre = textBox2.Text; ogrenci = new EOGRENCI(); ogrenci = BOGRENCI.Select(numara, sifre); ogretimGorevlisi = new EOGRETIMGOREVLISI(); ogretimGorevlisi = BOGRETIMGOREVLISI.Select(numara, sifre); if (ogrenci != null) { Form2 frm2 = new Form2(this); frm2.ShowDialog(); } else if (ogretimGorevlisi != null) { Form3 frm3 = new Form3(this); frm3.ShowDialog(); } else { MessageBox.Show("Okul Numaranız veya Şifreniz Hatalı!"); } }
private void fillOpenedCourseList() { List <EACILANDERSLERVIEW> acilanDersler = new List <EACILANDERSLERVIEW>(); acilanDersler = BACILANDERSLER.SelectList(); dataGridView2.DataSource = acilanDersler; dataGridView2.Columns[0].Visible = false; dataGridView2.Columns[10].Visible = false; List <EOGRETIMGOREVLISI> gorevliler = new List <EOGRETIMGOREVLISI>(); gorevliler = BOGRETIMGOREVLISI.SelectList(); comboBox7.DataSource = gorevliler; comboBox7.DisplayMember = "ADSOYAD1"; comboBox7.ValueMember = "ID1"; List <EBINALAR> binalar = new List <EBINALAR>(); binalar = BBINALAR.SelectList(); comboBox8.DataSource = binalar; comboBox8.DisplayMember = "KODU1"; comboBox8.ValueMember = "ID1"; List <EGUNLER> gunler = new List <EGUNLER>(); gunler = BGUNLER.SelectList(); comboBox9.DataSource = gunler; comboBox9.DisplayMember = "GUN1"; comboBox9.ValueMember = "ID1"; List <EDERSLIK> derslikler = new List <EDERSLIK>(); derslikler = BDERSLIK.SelectList(); comboBox10.DataSource = derslikler; comboBox10.DisplayMember = "KODU1"; comboBox10.ValueMember = "ID1"; List <EPROGRAM> programlar = new List <EPROGRAM>(); programlar = BPROGRAM.SelectList(); comboBox11.DataSource = programlar; comboBox11.DisplayMember = "PROGRAM1"; comboBox11.ValueMember = "ID1"; List <EEGITIMOGRETIMYILI> yillar = new List <EEGITIMOGRETIMYILI>(); yillar = BEGITIMOGRETIMYILI.SelectList(); comboBox13.DataSource = yillar; comboBox13.DisplayMember = "YIL1"; comboBox13.ValueMember = "ID1"; List <EDONEM> donemler = new List <EDONEM>(); donemler = BDONEM.SelectList(); comboBox14.DataSource = donemler; comboBox14.DisplayMember = "DONEM1"; comboBox14.ValueMember = "ID1"; List <EDERSDILI> diller = new List <EDERSDILI>(); diller = BDERSDILI.SelectList(); comboBox4.DataSource = diller; comboBox4.DisplayMember = "DIL1"; comboBox4.ValueMember = "ID1"; List <EDERSLER> dersler = new List <EDERSLER>(); dersler = BDERSLER.SelectList(); comboBox12.DataSource = dersler; comboBox12.DisplayMember = "DERS1"; comboBox12.ValueMember = "ID1"; }