Example #1
0
        private void RegistrarInformacion()
        {
            ClienteFactor.cClientePrestacion clientePrestacion = new ClienteFactor.cClientePrestacion(0);
            clientePrestacion.Borra(this._Cliente);
            int num1  = 0;
            int num2  = checked (this.dtDatos.Rows.Count - 1);
            int index = num1;

            while (index <= num2)
            {
                clientePrestacion.Registra(this._Cliente, IntegerType.FromObject(this.dgDatos[index, 2]), DecimalType.FromObject(this.dgDatos[index, 1]), this.dtpFInicio.Value, this.dtpFInicio.Value, this.cboStatus.Text, Globals.GetInstance._Usuario);
                checked { ++index; }
            }
            this.DatosSalvados = true;
            this.Close();
        }