예제 #1
0
        public override void OpenEditForm()
        {
            LivestockBookLineEditForm form = new LivestockBookLineEditForm(ActiveItem.Oid, ActiveItem.ETipo, this);

            if (form.Entity != null)
            {
                AddForm(form);
                _entity = form.Entity;
            }
        }
        protected override void EditCabezaAction()
        {
            if (!ControlsMng.IsCurrentItemValid(LibroGanadero_DGW))
            {
                return;
            }

            LivestockBookLine linea = ControlsMng.GetCurrentItem(LibroGanadero_DGW) as LivestockBookLine;

            LivestockBookLineEditForm form = new LivestockBookLineEditForm(linea, this);

            form.ShowDialog(this);
        }