示例#1
0
        private void btnCancelFlight_Click(object sender, EventArgs e)
        {
            int index = dgvMaganerFlight.SelectedRows[0].Index;

            if (dgvMaganerFlight.Rows[index].DefaultCellStyle.BackColor == Color.Red)
            {
                dgvMaganerFlight.Rows[index].DefaultCellStyle.BackColor = Color.White;
            }
            else
            {
                dgvMaganerFlight.Rows[index].DefaultCellStyle.BackColor = Color.Red;
            }
            scheduleBUS.setComfirm(Convert.ToInt32(dgvMaganerFlight.Rows[index].Cells[9].Value));
        }