public PrincipalPage()
 {
     this.InitializeComponent();
     rootFrame = Window.Current.Content as Frame;
     parseFun = new FundacionParse();
     parseEventos = new EventoParse();
     usuario = new ParseUser();
 }
예제 #2
0
 public PrincipalPage()
 {
     this.InitializeComponent();
     rootFrame    = Window.Current.Content as Frame;
     parseFun     = new FundacionParse();
     parseEventos = new EventoParse();
     usuario      = new ParseUser();
 }
예제 #3
0
 public void agregarEvento()
 {
     EventoParse ep = new EventoParse();
     Eventos e = new Eventos();
     e.Lugar = lugar.Text;
     e.Nombre = nombre.Text;
     e.Descripcion = descripcion.Text;
     e.Hora = hora.Text;
     e.Fecha = date.Text;
     e.Id_Fundacion = "1";
     e.Foto = "foto";
     ep.insertEvento(e);
     rootFrame.GoBack();
 }
예제 #4
0
        public void agregarEvento()
        {
            EventoParse ep = new EventoParse();
            Eventos     e  = new Eventos();

            e.Lugar        = lugar.Text;
            e.Nombre       = nombre.Text;
            e.Descripcion  = descripcion.Text;
            e.Hora         = hora.Text;
            e.Fecha        = date.Text;
            e.Id_Fundacion = "1";
            e.Foto         = "foto";
            ep.insertEvento(e);
            rootFrame.GoBack();
        }
예제 #5
0
 private void editEvento(object sender, RoutedEventArgs e)
 {
     if (!string.IsNullOrWhiteSpace(lugar.Text) && !string.IsNullOrWhiteSpace(date.Text) && !string.IsNullOrWhiteSpace(hora.Text) && !string.IsNullOrWhiteSpace(descripcion.Text) && !string.IsNullOrWhiteSpace(nombre.Text))
     {
         EventoParse obj = new EventoParse();
         itm.Hora = hora.Text;
         itm.Nombre = nombre.Text;
         itm.Descripcion = descripcion.Text;
         itm.Lugar = lugar.Text;
         itm.Hora = hora.Text;
         itm.Fecha = date.Text;
         itm.ObjectId = "BIeofNnQMk";
         // itm.Foto=
         obj.updateEvento(itm);
         rootFrame.GoBack();
     }
     else
     {
         result.Text = "todos los campos son obligatorios";
     }
 }
예제 #6
0
 private void editEvento(object sender, RoutedEventArgs e)
 {
     if (!string.IsNullOrWhiteSpace(lugar.Text) && !string.IsNullOrWhiteSpace(date.Text) && !string.IsNullOrWhiteSpace(hora.Text) && !string.IsNullOrWhiteSpace(descripcion.Text) && !string.IsNullOrWhiteSpace(nombre.Text))
     {
         EventoParse obj = new EventoParse();
         itm.Hora        = hora.Text;
         itm.Nombre      = nombre.Text;
         itm.Descripcion = descripcion.Text;
         itm.Lugar       = lugar.Text;
         itm.Hora        = hora.Text;
         itm.Fecha       = date.Text;
         itm.ObjectId    = "BIeofNnQMk";
         // itm.Foto=
         obj.updateEvento(itm);
         rootFrame.GoBack();
     }
     else
     {
         result.Text = "todos los campos son obligatorios";
     }
 }