Example #1
0
        // Chức năng
        private void bunifuImageButton3_Click(object sender, EventArgs e)
        {
            Diablog_TBV d = new Diablog_TBV();

            d.ShowDialog(this);
            View();
        }
Example #2
0
        private void dataGrid_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            string id;

            if (dataGrid.Columns[e.ColumnIndex].Name == "Sua")
            {
                id = dataGrid.Rows[e.RowIndex].Cells["Id"].Value.ToString();
                //MessageBox.Show(dataGrid.Rows[e.RowIndex].Cells["Id"].Value.ToString());
                Diablog_TBV d = new Diablog_TBV(id);
                d.ShowDialog(this);
                View();
            }
            if (dataGrid.Columns[e.ColumnIndex].Name == "Xoa")
            {
                id = dataGrid.Rows[e.RowIndex].Cells["Id"].Value.ToString();
                bus.Delete(id);
                View();
            }
        }