Example #1
0
        private void buttonChiTiet_Click(object sender, EventArgs e)
        {
            this.Hide();
            ChiTietHopDong formChiTietHopDong = new ChiTietHopDong();

            formChiTietHopDong.FormClosed += FormChiTietHopDong_FormClosed;
            formChiTietHopDong.Show();
        }
        private void buttonChiTiet_Click(object sender, EventArgs e)
        {
            this.Hide();
            DataGridViewRow row = dataGridViewToanBoHopDong.CurrentRow;
            ChiTietHopDong  formChiTietHopDong = new ChiTietHopDong(
                row.Cells[0].Value.ToString(),
                row.Cells[1].Value.ToString(),
                row.Cells[2].Value.ToString(),
                row.Cells[3].Value.ToString(),
                row.Cells[4].Value.ToString(),
                Convert.ToDateTime(row.Cells[5].Value),
                Convert.ToDateTime(row.Cells[6].Value),
                row.Cells[7].Value.ToString()
                );

            formChiTietHopDong.FormClosed += FormChiTietHopDong_FormClosed;
            formChiTietHopDong.Show();
        }