コード例 #1
0
 public PrincipalPage()
 {
     this.InitializeComponent();
     rootFrame    = Window.Current.Content as Frame;
     parseFun     = new FundacionParse();
     parseEventos = new EventoParse();
     usuario      = new ParseUser();
 }
コード例 #2
0
        private void agregarEvento()
        {
            Fundacion      ob  = new Fundacion();
            FundacionParse obp = new FundacionParse();

            ob.Correo          = correo.Text;
            ob.Cuenta_bancaria = cuenta_bancaria.Text;
            ob.Descripcion     = descripcion.Text;
            ob.Direccion       = direccion.Text;
            ob.Nombre          = nombre.Text;
            ob.Telefono        = telefono.Text;
            obp.insertFundacion(ob);
            rootFrame.GoBack();
        }
コード例 #3
0
 private void goToEdit(object sender, RoutedEventArgs e)
 {
     if (!string.IsNullOrWhiteSpace(nombre.Text) && !string.IsNullOrWhiteSpace(direccion.Text) && !string.IsNullOrWhiteSpace(correo.Text) && !string.IsNullOrWhiteSpace(descripcion.Text) && !string.IsNullOrWhiteSpace(cuenta_bancaria.Text))
     {
         FundacionParse obj = new FundacionParse();
         itm.Nombre          = nombre.Text;
         itm.ObjectId        = "Cic5apx3U3";
         itm.Descripcion     = descripcion.Text;
         itm.Direccion       = direccion.Text;
         itm.Correo          = correo.Text;
         itm.Cuenta_bancaria = cuenta_bancaria.Text;
         itm.Telefono        = telefono.Text;
         result.Text         = "entra a cuardar";
         //if (file != null)
         //result.Text = itm.Foto;
         itm.ArchivoImg = file;
         obj.updateFundacion(itm);
         //rootFrame.GoBack();
     }
     else
     {
         result.Text = "Todos los campos son obligatorios";
     }
 }