Example #1
0
        private void Add_but_Click(object sender, EventArgs e)
        {
            //FormBuilder.Prepare_Form_To_Add(tbl, new Point(50, 50));
            ElementWorkForm frm =
                new ElementWorkForm();

            frm.ShowDialog();
        }
Example #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();
         }
     }
 }