Esempio n. 1
0
 public VentanaDialogo(LogicaNegocio logicaNegocio)
 {
     InitializeComponent();
     this.logicaNegocio = logicaNegocio;
     ingresoGasto       = new IngresoGasto();
     this.DataContext   = ingresoGasto;
     BInsertar.Content  = "Insertar";
 }
Esempio n. 2
0
 public VentanaDialogo(LogicaNegocio logicaNegocio, IngresoGasto ingresoGasto, int posicion)
 {
     InitializeComponent();
     this.logicaNegocio = logicaNegocio;
     this.ingresoGasto  = ingresoGasto;
     this.DataContext   = ingresoGasto;
     this.posicion      = posicion;
     if (ingresoGasto.Ingreso != 0)
     {
         TBImporte.Text = Convert.ToString(ingresoGasto.Ingreso);
     }
     else
     {
         TBImporte.Text = Convert.ToString(ingresoGasto.Gasto);
     }
     BInsertar.Content = "Modificar";
 }
Esempio n. 3
0
        public VentanaDialogo(LogicaNegocio logicaNegocio, IngresoGasto ingresoGasto, int posicion)
        {
            InitializeComponent();
            this.logicaNegocio   = logicaNegocio;
            DPFecha.SelectedDate = ingresoGasto.Fecha;
            this.posicion        = posicion;
            TBConcepto.Text      = ingresoGasto.Concepto;

            if (ingresoGasto.Ingreso != 0)
            {
                TBImporte.Text = Convert.ToString(ingresoGasto.Ingreso);
            }
            else
            {
                TBImporte.Text = Convert.ToString(ingresoGasto.Gasto);
            }
            BInsertar.Content = "Modificar";
        }
Esempio n. 4
0
 public void modificarIngresoGasto(IngresoGasto ingresoGasto, int posicion)
 {
     ListaIngresosGastos[posicion] = ingresoGasto;
 }
Esempio n. 5
0
 public void aniadirIngresoGasto(IngresoGasto ingresoGasto)
 {
     ListaIngresosGastos.Add(ingresoGasto);
 }