예제 #1
0
 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();
     }
 }
예제 #2
0
파일: Form1.cs 프로젝트: jdvolz/VSOrganizer
        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]);
        }
예제 #3
0
        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();
            }
        }
예제 #4
0
파일: Form1.cs 프로젝트: jdvolz/VSOrganizer
 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]);
 }