Example #1
0
 private void Button_LocTheoLop_Click(object sender, EventArgs e)
 {
     if (locTheoLop == false)
     {
         Button_LocTheoLop.Text = "Hiển thị tất cả";
         locTheoLop             = true;
         Label_KhoiLop.Show();
         ComboBox_KhoiLop.Show();
         Label_Lop.Show();
         ComboBox_Lop.Show();
         if (ComboBox_Lop.Text != "")
         {
             ComboBox_Lop.SelectedIndex = 0;
         }
         LoadThongTin(ComboBox_Lop.Text);
     }
     else
     {
         Button_LocTheoLop.Text = "Lọc theo lớp";
         locTheoLop             = false;
         Label_KhoiLop.Hide();
         ComboBox_KhoiLop.Hide();
         Label_Lop.Hide();
         ComboBox_Lop.Hide();
         LoadThongTin();
     }
 }
Example #2
0
        private void ComboBox_NamHoc_SelectedValueChanged(object sender, EventArgs e)
        {
            Button_LocTheoLop.Text = "Lọc theo lớp";
            locTheoLop             = false;
            Label_KhoiLop.Hide();
            ComboBox_KhoiLop.Hide();
            Label_Lop.Hide();
            ComboBox_Lop.Hide();

            LoadThongTin();
        }
Example #3
0
        private void init()
        {
            TextBox_HoTen.TextChanged += TextBox_HoTen_TextChanged;

            TrackBar_CoChu.Value         = int.Parse(GridView_DSHocSinh.Font.Size.ToString());
            TrackBar_CoChu.ValueChanged += TrackBar_CoChu_ValueChanged;

            Label_KhoiLop.Hide();
            ComboBox_KhoiLop.Hide();
            Label_Lop.Hide();
            ComboBox_Lop.Hide();
        }