示例#1
0
文件: FormCay.cs 项目: dtome123/QLNT
        // Chức năng
        private void bunifuImageButton3_Click(object sender, EventArgs e)
        {
            Diablog_Cay d = new Diablog_Cay();

            d.ShowDialog(this);
            View();
        }
示例#2
0
文件: FormCay.cs 项目: dtome123/QLNT
        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_Cay d = new Diablog_Cay(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();
            }
        }