public PrincipalPage() { this.InitializeComponent(); rootFrame = Window.Current.Content as Frame; parseFun = new FundacionParse(); parseEventos = new EventoParse(); usuario = new ParseUser(); }
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(); }
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"; } }