private void btSua_Click(object sender, EventArgs e)
 {
     if (txtMaDV.Text != "")
     {
         {
             SuaDonVi frmsua = new SuaDonVi();
             frmsua.Show();
             laymadonvi del = new laymadonvi(frmsua.Laydulieu);
             del(this.txtMaDV);
             frmsua.Show();
         }
     }
     else
     {
         MessageBox.Show("Vui lòng chọn đơn vị muốn sửa!");
     }
 }
Beispiel #2
0
 private void btSua_Click(object sender, EventArgs e)
 {
     if (txtMaDV.Text != "")
     {
         {
             SuaDonVi frmsua = new SuaDonVi();
             frmsua.Show();
             laymadonvi del = new laymadonvi(frmsua.Laydulieu);
             del(this.txtMaDV);
             frmsua.Show();
         }
     }
     else
     {
         MessageBox.Show("Vui lòng chọn đơn vị muốn sửa!");
     }
 }
Beispiel #3
0
        private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            int VT = dataGridView1.CurrentCell.RowIndex;

            loadCV(VT);
            var a = dataGridView1.Rows[e.RowIndex];

            if (e.ColumnIndex == dataGridView1.Columns["ChiTiet"].Index && e.RowIndex >= 0)
            {
                {
                    ChiTietDonVi frmchitiet = new ChiTietDonVi();
                    frmchitiet.Show();
                    laymadonvi del = new laymadonvi(frmchitiet.Laydulieu);
                    del(this.txtMaDV);
                    frmchitiet.Show();
                }
            }
        }
 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     int VT = dataGridView1.CurrentCell.RowIndex;
     loadCV(VT);
     var a = dataGridView1.Rows[e.RowIndex];
     if (e.ColumnIndex == dataGridView1.Columns["ChiTiet"].Index && e.RowIndex >= 0)
     {
         {
             ChiTietDonVi frmchitiet = new ChiTietDonVi();
             frmchitiet.Show();
             laymadonvi del = new laymadonvi(frmchitiet.Laydulieu);
             del(this.txtMaDV);
             frmchitiet.Show();
         }
     }
 }