private void FormAna_Load(object sender, EventArgs e)
        {
            var tedrisIlleri = new List <TedrisIli>();

            for (int i = DateTime.Today.Year - 10; i < DateTime.Today.Year + 10; i++)
            {
                var ty = new TedrisIli {
                    Il = i
                };
                tedrisIlleri.Add(ty);
            }
            comboBoxTedrisIli.DataSource    = tedrisIlleri;
            comboBoxTedrisIli.DisplayMember = "Ad";
            comboBoxTedrisIli.ValueMember   = "Il";
            comboBoxTedrisIli.SelectedItem  = tedrisIlleri.SingleOrDefault(x => DateTime.Today.AddMonths(-7).Year == x.Il);

            var fakulteler = from Fakulte f in Program.VBE
                             orderby f.Ad ascending
                             where f.Universitet == Program.SecilmisUniversitet
                             select f;

            comboBoxFakulte.DataSource    = fakulteler.ToList();
            comboBoxFakulte.DisplayMember = "Ad";

            var ixtisasQruplari = (from IxtisasQrubu iq in Program.VBE
                                   orderby iq.Ad ascending
                                   select iq).ToList();

            foreach (var ixtisasQrubu in ixtisasQruplari)
            {
                flowLayoutPanelIxtisasGruplari.Controls.Add(new ButtonIxtisasQrubu(ixtisasQrubu));
            }
        }
Exemple #2
0
        private void FormBaxVeCapEt_Load(object sender, EventArgs e)
        {
            if (Program.SecilmisUniversitet == null)
            {
                this.Close(); return;
            }
            var tedrisIlleri = new List <TedrisIli>();

            for (int i = DateTime.Today.Year - 10; i < DateTime.Today.Year + 10; i++)
            {
                var ty = new TedrisIli {
                    Il = i
                };
                tedrisIlleri.Add(ty);
            }
            comboBoxTedrisIli.DataSource    = tedrisIlleri;
            comboBoxTedrisIli.DisplayMember = "Ad";
            comboBoxTedrisIli.ValueMember   = "Il";
            comboBoxTedrisIli.SelectedItem  = tedrisIlleri.SingleOrDefault(x => DateTime.Today.AddMonths(-7).Year == x.Il);

            var fakulteler = from Fakulte f in Program.VBE
                             orderby f.Ad ascending
                             where f.Universitet == Program.SecilmisUniversitet
                             select f;

            comboBoxFakulte.DataSource    = fakulteler.ToList();
            comboBoxFakulte.DisplayMember = "Ad";
        }
Exemple #3
0
        private void FormAvtomatikDuzelis_Load(object sender, EventArgs e)
        {
            if (Program.SecilmisUniversitet == null)
            {
                this.Close(); return;
            }
            var tedrisIlleri = new List <TedrisIli>();

            for (int i = DateTime.Today.Year - 10; i < DateTime.Today.Year + 10; i++)
            {
                var ty = new TedrisIli {
                    Il = i
                };
                tedrisIlleri.Add(ty);
            }
            comboBoxTedrisIli.DataSource    = tedrisIlleri;
            comboBoxTedrisIli.DisplayMember = "Ad";
            comboBoxTedrisIli.ValueMember   = "Il";
            comboBoxTedrisIli.SelectedItem  = tedrisIlleri.SingleOrDefault(x => DateTime.Today.AddMonths(-7).Year == x.Il);

            buttonSaxla.Enabled = false;
            muellimler          = (from Muellim m in Program.VBE
                                   orderby m.Familya, m.Ad, m.AtaAdi ascending
                                   where m.VezifeliOlduguYer.Fakulte.Universitet == Program.SecilmisUniversitet
                                   select m).ToList();
            if (muellimler == null || muellimler.Count == 0)
            {
                MessageBox.Show("Qeydli Müəllim Yox.");
                this.Close();
                return;
            }
            dersler = (from Ders d in Program.VBE
                       orderby d.Ad ascending
                       select d).ToList();
            if (dersler == null || dersler.Count == 0)
            {
                MessageBox.Show("Qeydli Dərs Yox.");
                this.Close();
                return;
            }
            ixtisasQruplari = (from IxtisasQrubu iq in Program.VBE
                               orderby iq.Ad ascending
                               select iq).ToList();
            if (ixtisasQruplari == null || ixtisasQruplari.Count == 0)
            {
                MessageBox.Show("Qeydli İxtisas Qrubu Yox.");
                this.Close();
                return;
            }
            muelliminDeyeBildiyiDersler = (from MuelliminDeyeBildiyiDers mdbd in Program.VBE
                                           orderby mdbd.DediyiIlSayi descending
                                           select mdbd).ToList();
            ixtisasDersleri = (from IxtisasDersi id in Program.VBE
                               orderby id.Ad ascending
                               select id).ToList();
        }
Exemple #4
0
 private void comboBoxTedrisIli_SelectedIndexChanged(object sender, EventArgs e)
 {
     tedrisIli = comboBoxTedrisIli.SelectedItem as TedrisIli;
     if (tedrisIli == null)
     {
         buttonTedrisYukunuAvtomatikHazirla.Enabled = false;
         buttonSaxla.Enabled = false;
     }
     else
     {
         buttonTedrisYukunuAvtomatikHazirla.Enabled = true;
         buttonSaxla.Enabled = false;
     }
 }