public override void OpenAddForm()
        {
            CobroFomentoAddForm form = new CobroFomentoAddForm(this);

            AddForm(form);
            _entity = form.Entity;
        }
예제 #2
0
        public override void OpenAddForm()
        {
            switch (_tipo)
            {
            case ETipoCobro.Cliente:
            {
                OpenEditForm();
            }
            break;

            case ETipoCobro.REA:
            {
                REAChargeAddForm form = new REAChargeAddForm(this);
                if (form.Entity != null)
                {
                    AddForm(form);
                }
            }
            break;

            case ETipoCobro.Fomento:
            {
                CobroFomentoAddForm form = new CobroFomentoAddForm(this);
                if (form.Entity != null)
                {
                    AddForm(form);
                }
            }
            break;
            }
            RefreshList();
        }
예제 #3
0
        protected override void NewCobroAction()
        {
            CobroFomentoAddForm form = new CobroFomentoAddForm(this);

            form.ShowDialog(this);

            RefreshAction();
        }