示例#1
0
        public override void CopyObjectAction(long oid)
        {
            ExpenseAddForm form = new ExpenseAddForm(Expense.CloneAsNew(ActiveItem), this);

            if (form.Entity != null)
            {
                AddForm(form);
                _entity = form.Entity;
            }
        }
示例#2
0
        public override void OpenAddForm()
        {
            ExpenseAddForm form = new ExpenseAddForm(this, _categoria);

            AddForm(form);
            if (form.ActionResult == DialogResult.OK)
            {
                _entity = form.Entity;
            }
        }