Exemple #1
0
        OGasto parseValues()
        {
            var ogast = new OGasto();

            if (etCantidad.Text == null || etCantidad.Text == "")
            {
                etCantidad.Text = "0";
            }
            ogast.CANTIDAD = Convert.ToDouble(etCantidad.Text.Trim());

            if (etConcepto.Text == null)
            {
                etConcepto.Text = "";
            }
            ogast.CONCEPTO = etConcepto.Text.TrimEnd().TrimStart();

            ogast.FECHA  = etFecha.Text.Trim();
            ogast.T_PAGO = spiner.GetItemAtPosition(spiner.SelectedItemPosition).ToString();

            ogast.NOTA = "";



            return(ogast);
        }
Exemple #2
0
 protected override void OnCreate(Bundle savedInstanceState)
 {
     base.OnCreate(savedInstanceState);
     // Create your application here
     SetContentView(Resource.Layout.LayGasto);
     DataNewGasto = new OGasto();
     initialControls();
 }
Exemple #3
0
 public static void InsertGasto(OGasto gasto)
 {
     collGastos.Insert(gasto);
 }