Esempio n. 1
0
 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));
         }
     }
 }
Esempio n. 2
0
        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));
                }
            }
        }