Esempio n. 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Benhnhanctrl benhnhan = new Benhnhanctrl();

            if (dateTimePicker2.Checked == true)
            {
                benhnhan.LoadDatagridview(dataGridView1, textBox1.Text.Trim(), textBox4.Text.Trim(), dateTimePicker2.Text.Trim(), Kieu_Gioi_Tinh(comboBox1.Text), textBox2.Text.Trim(), textBox5.Text.Trim());
            }
            else
            {
                benhnhan.LoadDatagridview(dataGridView1, textBox1.Text.Trim(), textBox4.Text.Trim(), "", Kieu_Gioi_Tinh(comboBox1.Text), textBox2.Text.Trim(), textBox5.Text.Trim());
            }
        }
Esempio n. 2
0
        private void ThongTinBenhNhan_Load(object sender, EventArgs e)
        {
            Benhnhanctrl benhnhan = new Benhnhanctrl();

            benhnhan.LoadDatagridview(dataGridView1, "", "", "", "", "", "");
            LoadDataGridViewFormat();
            TrangThaiBanDau();
        }