コード例 #1
0
        private async void btnSave_Click(object sender, RoutedEventArgs e)
        {
            CloureManager.ShowLoader("Guardando");
            foreach (var item in shows)
            {
                if (txtBandaArtista.SelectedValue != null)
                {
                    item.ArtistaId = (int)txtBandaArtista.SelectedValue;
                }
                bool res = await Shows.save(item);

                //CloureManager.ShowDialog("Fecha: "+item.Fecha.Value.ToString()+" Lugar: "+item.LugarId.ToString());
            }
            CloureManager.HideLoader();
            CloureManager.GoBack();
        }
コード例 #2
0
        private async void Save()
        {
            if (txtBandaArtista.SelectedValue == null)
            {
                CloureManager.ShowDialog("Debes seleccionar una banda/artista");
            }
            else
            {
                show.ArtistaId  = (int)txtBandaArtista.SelectedValue;
                show.LugarId    = (int)txtLugar.SelectedValue;
                show.Fecha      = txtFecha.Date.Date;
                show.Images     = images;
                show.Fotografos = fotografos;

                if (await Shows.save(show))
                {
                    CloureManager.GoBack("reload");
                }
            }
        }