Ejemplo n.º 1
0
        private void sQLIncidentDataGridView_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex == 4) //Assign Incident button clicked
            {
                int              intRowIndex = e.RowIndex;
                DataGridViewRow  row         = sQLIncidentDataGridView.Rows[intRowIndex];
                DataGridViewCell cell        = row.Cells[0];
                int              incidentID  = (int)cell.Value;

                //Display the Assign Incident form
                Form incidentAssignmentForm = new frmIncidentAssignment();
                incidentAssignmentForm.Tag = incidentID;
                DialogResult result = incidentAssignmentForm.ShowDialog(this);

                if (result == DialogResult.OK || result == DialogResult.Retry)
                {
                    cm.Refresh();
                    LoadUnassignedIncidents();
                }
            }
        }
Ejemplo n.º 2
0
        private void sQLIncidentDataGridView_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex == 4) //Assign Incident button clicked
            {
                int intRowIndex = e.RowIndex;
                DataGridViewRow row = sQLIncidentDataGridView.Rows[intRowIndex];
                DataGridViewCell cell = row.Cells[0];
                int incidentID = (int)cell.Value;

                //Display the Assign Incident form
                Form incidentAssignmentForm = new frmIncidentAssignment();
                incidentAssignmentForm.Tag = incidentID;
                DialogResult result = incidentAssignmentForm.ShowDialog(this);

                if (result == DialogResult.OK || result == DialogResult.Retry)
                {
                    cm.Refresh();
                    LoadUnassignedIncidents();
                }
            }
        }