コード例 #1
0
ファイル: SpecPozVew.cs プロジェクト: miaxon/spec
 private void dgView_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dgView.Columns[e.ColumnIndex].Equals(c_img))
     {
         SpecDataGridViewRow row = dgView.Rows[e.RowIndex] as SpecDataGridViewRow;
         if (row.Object.num_kod < 9 && RaskrEvent != null)
         {
             RaskrEvent(this, new RaskrEventArgs(row.Object));
         }
     }
 }
コード例 #2
0
ファイル: SpecPozVew.cs プロジェクト: miaxon/spec
        private void dgView_CellEndEdit(object sender, DataGridViewCellEventArgs e)
        {
            if (dgView.Columns[e.ColumnIndex].Equals(c_obozn))
            {
                SpecDataGridViewRow row = dgView.Rows[e.RowIndex] as SpecDataGridViewRow;
                if (SearchEvent != null)
                {
                    SearchEvent(this, new SearchEventArgs("obozn", row.Cells[e.ColumnIndex].Value.ToString(), row.Object.num_kod));
                }
            }

            if (dgView.Columns[e.ColumnIndex].Equals(c_gost))
            {
                SpecDataGridViewRow row = dgView.Rows[e.RowIndex] as SpecDataGridViewRow;
                if (SearchEvent != null)
                {
                    SearchEvent(this, new SearchEventArgs("gost", row.Cells[e.ColumnIndex].Value.ToString(), row.Object.num_kod));
                }
            }
        }