public ChangeEntityForm(EntityForm <T> mainForm, DataGridViewRow row)
 {
     this.MainForm = mainForm;
     this.Row      = row;
     this.Entity   = (T)row.Cells[0].Value;
     InitializeComponent();
     FieldsController.AddFields <T>(panel);
     FieldsController.FillFields(panel, row.Cells[0].Value);
 }
Example #2
0
 private void dataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     e.RowIndex.ToString();
     FieldsController.FillFields(panel, Dt.Rows[e.RowIndex][0]);
 }