private void OpenResults() { if (dgvActive.SelectedRows.Count == 0) return; DataGridViewRow row = dgvActive.SelectedRows[0]; Project selected = null; foreach (Project p in results.Values) if (p.Name.CompareTo(row.Cells[0].Value.ToString()) == 0) selected = p; if (selected != null) { ShowNotesForm frm = new ShowNotesForm(); frm.MyProject = selected; frm.Highlighted = highlighted; frm.ShowDialog(); } }
private void ShowNotes(DataGridView dgv) { if (dgv.SelectedRows.Count == 0) { return; } DataGridViewRow row = dgv.SelectedRows[0]; Project proj = dgv2plm[dgv].ProjectList.Find(delegate(Project p) { return(p.Name.CompareTo(row.Cells[0].Value.ToString()) == 0); }); ShowNotesForm frm = new ShowNotesForm(); frm.MyProject = proj; frm.ShowDialog(); LoadDataViewGrid(dgv, dgv2plm[dgv]); }
private void OpenResults() { if (dgvActive.SelectedRows.Count == 0) { return; } DataGridViewRow row = dgvActive.SelectedRows[0]; Project selected = null; foreach (Project p in results.Values) { if (p.Name.CompareTo(row.Cells[0].Value.ToString()) == 0) { selected = p; } } if (selected != null) { ShowNotesForm frm = new ShowNotesForm(); frm.MyProject = selected; frm.Highlighted = highlighted; frm.ShowDialog(); } }
private void ShowNotes(DataGridView dgv) { if (dgv.SelectedRows.Count == 0) return; DataGridViewRow row = dgv.SelectedRows[0]; Project proj = dgv2plm[dgv].ProjectList.Find(delegate(Project p) { return p.Name.CompareTo(row.Cells[0].Value.ToString()) == 0; }); ShowNotesForm frm = new ShowNotesForm(); frm.MyProject = proj; frm.ShowDialog(); LoadDataViewGrid(dgv, dgv2plm[dgv]); }