Пример #1
0
        } // for string

        public void reload_base_el()
        {
            changed = true;
            int             id = pr.base_el.ID;
            Compare_Element el = FuncClass.get_Element(id);

            if (el != null)
            {
                pr.base_el = el;
                load_data_from_pair();
            }
        }
Пример #2
0
 private void dgv_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex != -1)
     {
         if (dgv.Rows[e.RowIndex].Cells[0].Value != null)
         {
             //FormBuilder.Prepare_Form_To_Edit(tbl,new Point(50,50), Convert.ToInt32(dgv.Rows[e.RowIndex].Cells[0].Value));
             ElementWorkForm frm =
                 new ElementWorkForm(FuncClass.get_Element(Convert.ToInt32(dgv.Rows[e.RowIndex].Cells[0].Value)));
             frm.ShowDialog();
         }
     }
 }