protected void OnAddItemClick(object sender, EventArgs e) { TFlexObjSynchDialog dialog = new TFlexObjSynchDialog(); if (dialog.ShowDialog() == DialogResult.OK) { var obj = _repoObjSynchView.GetById(dialog.Id); AddRow(obj); } }
protected void OnEditItemClick(object sender, EventArgs e) { DataGridViewRow row = scene.SelectedRows[0]; int id = (int)row.Tag; TFlexObjSynchDialog dialog = new TFlexObjSynchDialog(id); if (dialog.ShowDialog() == DialogResult.OK) { var obj = _repoObjSynchView.GetById(dialog.Id); UpdateRow(row, obj); } }