Пример #1
0
        private void searchByTypecb_SelectedIndexChanged(object sender, EventArgs e)
        {
            filterType = searchByTypecb.Text;
            searchByLevelcb.Items.Clear();
            refreshLevelAndSectionFieldsAndFilters();
            List <Object> Levels = UpdateStudent.getLevel(filterType);

            if (searchByTypecb.Text.Equals("Basic Education"))
            {
                foreach (Object level in Levels)
                {
                    searchByLevelcb.Items.Add(level);
                }
                //groupBox1.Size = new Size(157, 472);
            }
            else
            {
                searchBySectioncb.Text = "All";
                searchByLevelcb.Text   = "All";
                //groupBox1.Size = new Size(157, 415);
            }
            if (searchByTypecb.Text.Equals("College") || searchByTypecb.Text.Equals("International Baccal"))
            {
                foreach (Object level in Levels)
                {
                    searchByLevelcb.Items.Add(level);
                }
            }

            refreshViewFromSearch();
        }
Пример #2
0
 private void searchByLevelcb_SelectedIndexChanged(object sender, EventArgs e)
 {
     searchBySectioncb.Items.Clear();
     foreach (Object section in UpdateStudent.getSection(searchByLevelcb.Text))
     {
         searchBySectioncb.Items.Add(section);
     }
     filterLevel = searchByLevelcb.Text;
     refreshViewFromSearch();
 }