private void UpdateStudyState(DataGridViewCellEventArgs e)
 {
     this.m_CurrentExportStudy = this.m_PrintexportEditor.GetExportStudy(this.dgvPrediction.Rows[e.RowIndex].Cells["ID"].Value.ToString());
     if (e.ColumnIndex == 6)
     {
         this.clbData.Enabled = true;
         this.UpdateStatData(e);
     }
     else
     {
         this.clbData.Enabled = false;
         this.UpdatePicState(e);
     }
 }
 private void BindStatisticsData(ExportStudy es)
 {
     this.clbData.ItemCheck -= new ItemCheckEventHandler(this.clbData_ItemCheck);
     for (int i = 0; i < es.IsSelect.Length; i++)
     {
         this.clbData.SetItemChecked(i, es.IsSelect[i]);
     }
     this.clbData.ItemCheck += new ItemCheckEventHandler(this.clbData_ItemCheck);
 }
 private void dgvPrediction_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if ((e.RowIndex > -1) && (e.RowIndex < this.dgvPrediction.RowCount))
     {
         if (!((bool) this.dgvPrediction.Rows[e.RowIndex].Cells["IsGroup"].Value))
         {
             this.clbData.Enabled = true;
             this.m_CurrentExportStudy = this.m_PrintexportEditor.GetExportStudy(this.dgvPrediction.Rows[e.RowIndex].Cells["ID"].Value.ToString());
             this.BindStatisticsData(this.m_CurrentExportStudy);
             this.lstPlogyn.Enabled = false;
             if (e.ColumnIndex == 6)
             {
                 this.clbData.Enabled = true;
             }
             else
             {
                 this.clbData.Enabled = false;
             }
         }
         else
         {
             this.m_GroupPara = this.m_PrintexportEditor.GroupParaDic[this.dgvPrediction.Rows[e.RowIndex].Cells["Group"].Value.ToString()];
             this.BindPlogyn(this.m_GroupPara.Polygonname);
             this.clbData.Enabled = false;
         }
     }
 }
 private void UpdateStudyState(DataGridViewCellEventArgs e, int ColumnIndex, int i)
 {
     this.dgvPrediction.Rows[i].Cells[e.ColumnIndex].Value = this.m_GroupPara.IsChecked[ColumnIndex];
     this.m_CurrentExportStudy = this.m_PrintexportEditor.GetExportStudy(this.dgvPrediction.Rows[i].Cells["ID"].Value.ToString());
     if (e.ColumnIndex == 6)
     {
         if (this.m_GroupPara.IsChecked[ColumnIndex] == 0)
         {
             this.m_CurrentExportStudy.IsChecked = 0;
             this.m_CurrentExportStudy.SetIsSelect(false);
         }
         else
         {
             this.m_CurrentExportStudy.IsChecked = 1;
             this.m_CurrentExportStudy.SetIsSelect(true);
         }
         this.BindStatisticsData(this.m_CurrentExportStudy);
     }
     else if (this.m_GroupPara.IsChecked[ColumnIndex] == 0)
     {
         this.m_CurrentExportStudy.Pic[e.ColumnIndex - 4] = false;
     }
     else
     {
         this.m_CurrentExportStudy.Pic[e.ColumnIndex - 4] = true;
     }
 }