Exemple #1
0
        protected void OnAddItemClick(object sender, EventArgs e)
        {
            TFlexObjSynchDialog dialog = new TFlexObjSynchDialog();

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                var obj = _repoObjSynchView.GetById(dialog.Id);
                AddRow(obj);
            }
        }
Exemple #2
0
        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);
            }
        }