Пример #1
0
        private void button5_Click(object sender, EventArgs e)
        {
            FCuotasPagarV2 f = new FCuotasPagarV2(contratoUp.IdContrato);

            f.StartPosition = FormStartPosition.CenterParent;
            f.ShowDialog();
        }
Пример #2
0
        private void contratosDataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (seleccion)
            {
                c = (Contrato)contratosBindingSource.Current;

                FCuotasPagarV2 f = new FCuotasPagarV2(c.IdContrato);
                f.StartPosition = FormStartPosition.CenterParent;
                f.ShowDialog();
                if (f.DialogResult == DialogResult.OK)
                {
                    this.cuota = f.cuota;
                }


                this.DialogResult = DialogResult.OK;
                this.Close();
            }
            else if (pago)
            { /*
               * c = (Contrato)contratosBindingSource.Current;
               * FCuotasPagar f = new FCuotasPagar(c.IdContrato, pago);
               * f.StartPosition = FormStartPosition.CenterParent;
               * f.ShowDialog();
               * if (f.DialogResult == DialogResult.OK)
               * {
               *    this.cuota = f.cuota;
               * }*/
                c = (Contrato)contratosBindingSource.Current;
                FCuotasPagarV2 f = new FCuotasPagarV2(c.IdContrato, pago);
                f.StartPosition = FormStartPosition.CenterParent;
                f.ShowDialog();
                if (f.DialogResult == DialogResult.OK)
                {
                    this.cuota = f.cuota;
                }
            }
            else
            {
                Contrato contrato = new Contrato();
                contrato = (Contrato)contratosBindingSource.Current;
                FNuevoContrato f = new FNuevoContrato(contrato);
                f.ShowDialog();
                cargar();
            }
        }