private void requirementListDataGridView_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     DataGridViewCell cell = requirementListDataGridView.Rows[e.RowIndex].Cells[0];
     Requirement requirement = array[e.RowIndex] as Requirement;
     Form form = new RequirementDetailForm(requirement);
     if (mainForm.AddFormToPanel(form)) ;
        // mainForm.AddFormButtonToUserInterface(form, cell.Value.ToString(), Properties.Resources.ios7_paper_outline);
 }
        private void requirementListDataGridView_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            var senderGrid = (DataGridView)sender;

            if (senderGrid.Columns[e.ColumnIndex] == _deleteColumn)
            {
                Requirement requirement = _arrayList[e.RowIndex] as Requirement;
                DeleteRequirement(requirement.ID);
            }
            else if (senderGrid.Columns[e.ColumnIndex] == _commentColumn)
            {
                Requirement requirement = _arrayList[e.RowIndex] as Requirement;
                CommentEditorForm form = new CommentEditorForm(_presentationModel, requirement);
                _presentationModel.AddFormToPanel(form);
            }
            else
            {
                DataGridViewCell cell = requirementListDataGridView.Rows[e.RowIndex].Cells[0];
                Requirement requirement = _arrayList[e.RowIndex] as Requirement;
                Form form = new RequirementDetailForm(_presentationModel, requirement);
                if (_presentationModel.AddFormToPanel(form))
                    _presentationModel.AddFormButtonToUserInterface(form, cell.Value.ToString(), Properties.Resources.ios7_paper_outline);
            }
        }