Ejemplo n.º 1
0
        private void moduleDrop_onItemSelected(object sender, EventArgs e)
        {
            ArrayList sections = obj.acceder_Section(loginForm.user.specialite, modules[moduleDrop.selectedValue]);

            sectionDrop.Clear();
            foreach (String item in sections)
            {
                sectionDrop.AddItem(item);
            }
            sectionDrop.Enabled = true;

            if (enDrop.selectedIndex != -1)
            {
                int      niveau = obj.acceder_Niveaux(modules[moduleDrop.selectedValue]);
                String[] tbl    = enDrop.selectedValue.Split(' ');
                int      id_en  = Int32.Parse(tbl[0]);
                listcr = obj.acceder_creneaux(loginForm.user.specialite, niveau, Int32.Parse(sectionDrop.selectedValue), id_en);

                CreneauDrop.Clear();
                foreach (var item in listcr)
                {
                    CreneauDrop.AddItem(item.Key);
                }

                CreneauDrop.Enabled = true;
            }
        }
Ejemplo n.º 2
0
        private void salleDrop_onItemSelected(object sender, EventArgs e)
        {
            String[] tbl = salleDrop.selectedValue.Split(' ');
            MessageBox.Show(tbl[tbl.Length - 1]);
            listcr = obj.acceder_creneaux(salles[Int32.Parse(tbl[tbl.Length - 1])]);

            CreneauDrop.Clear();
            foreach (var item in listcr)
            {
                CreneauDrop.AddItem(item.Key);
            }

            CreneauDrop.Enabled = true;
        }
Ejemplo n.º 3
0
        public ModifierSeance(IScolarite obj, EmploiObj seance)
        {
            ModifierSeance.seance = seance;
            m_aeroEnabled         = false;
            ModifierSeance.obj    = obj;
            InitializeComponent();

            listcr = obj.acceder_creneaux(loginForm.user.specialite, seance.niveau, seance.section);

            CreneauDrop.Clear();
            foreach (var item in listcr)
            {
                CreneauDrop.AddItem(item.Key);
            }
        }