Beispiel #1
0
        private void btAdd_Click(object sender, EventArgs e)
        {
            Form_ChitietHopdong a = new Form_ChitietHopdong(0);

            a.d += new Form_ChitietHopdong.mydel(ShowAllHDViews);
            a.Show();
        }
Beispiel #2
0
 private void btEdit_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedRows.Count > 0)
     {
         int IDHD = (int)dataGridView1.SelectedRows[0].Cells["mahopdong"].Value;
         Form_ChitietHopdong a = new Form_ChitietHopdong(IDHD);
         a.d += new Form_ChitietHopdong.mydel(ShowAllHDViews);
         a.Show();
     }
 }