Exemple #1
0
 private void dgvEBContent_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex >= 0 && e.RowIndex >= 0)
     {
         if (e.ColumnIndex == ColumnSendState.Index)
         {
             EBContent_List[e.RowIndex].SendState = !EBContent_List[e.RowIndex].SendState;
             (MdiParent as EBMMain).InitStreamTable();
         }
         if (e.ColumnIndex == ColumnB_auxiliary_data.Index)
         {
             EBMContentDetail detail = new EBMContentDetail(EBContent_List[e.RowIndex].list_auxiliary_data);
             DialogResult     result = detail.ShowDialog();
             if (result == DialogResult.OK)
             {
                 EBContent_List[e.RowIndex].list_auxiliary_data = detail.GetData();
             }
             detail.Dispose();
         }
     }
 }
Exemple #2
0
 private void dgvEBContent_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         if (e.ColumnIndex >= 0 && e.RowIndex >= 0)
         {
             if (e.ColumnIndex == ColumnB_auxiliary_data.Index)
             {
                 EBMContentDetail detail = new EBMContentDetail(EBContent_List[e.RowIndex].list_auxiliary_data);
                 DialogResult     result = detail.ShowDialog();
                 if (result == DialogResult.OK)
                 {
                     EBContent_List[e.RowIndex].list_auxiliary_data = detail.GetData();
                 }
                 detail.Dispose();
             }
         }
     }
     catch (Exception ex)
     {
         //MessageBox.Show(ex.ToString());
     }
 }