Exemplo n.º 1
0
        // Chức năng
        private void bunifuImageButton3_Click(object sender, EventArgs e)
        {
            Diablog_PB d = new Diablog_PB();

            d.ShowDialog(this);
            View();
        }
Exemplo n.º 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();
                Diablog_PB d = new Diablog_PB(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();
            }
        }