예제 #1
0
 private void toolStripMenuItem2_Click(object sender, EventArgs e)
 {
     //開啟學生的志願序相關資料畫面
     if (dataGridViewX1.SelectedRows.Count == 1)
     {
         foreach (DataGridViewRow row in dataGridViewX1.SelectedRows)
         {
             ClassRowInfo         rowData = (ClassRowInfo)row.DataBoundItem;
             VolunteerStudentForm vsf     = new VolunteerStudentForm(rowData);
             vsf.ShowDialog();
             break;
         }
     }
 }
예제 #2
0
 private void dataGridViewX1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex != -1 && e.ColumnIndex != -1)
     {
         //開啟學生的志願序相關資料畫面
         if (dataGridViewX1.SelectedRows.Count == 1)
         {
             foreach (DataGridViewRow row in dataGridViewX1.SelectedRows)
             {
                 ClassRowInfo         rowData = (ClassRowInfo)row.DataBoundItem;
                 VolunteerStudentForm vsf     = new VolunteerStudentForm(rowData);
                 vsf.ShowDialog();
                 break;
             }
         }
     }
 }