This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Windows.UI.Xaml.Data; | |
class EnumToValuesConverter : IValueConverter | |
{ | |
public object Convert(object value, Type targetType, object parameter, string language) | |
{ | |
return value == null ? null : Enum.GetValues(value.GetType()); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MainViewModel | |
public Dias DiasSemana { get; set; } | |
private Dias diaSeleccionado = Dias.Lunes; | |
public Dias DiaSeleccionado | |
{ | |
get | |
{ | |
return diaSeleccionado; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<DataTemplate x:Key="SoulmateNuevoHitoTemplate"> | |
<Border Style="{StaticResource SoulmateDatetimeTileStyle}" ToolTipService.ToolTip="{Binding Nombre}"> | |
<Grid HorizontalAlignment="Left" Width="280" Height="95"> | |
<TextBlock FontFamily="Segoe UI Symbol" Text="" FontSize="40" | |
HorizontalAlignment="Center" VerticalAlignment="Center" Opacity="0.3" > | |
<TextBlock.Foreground> | |
<SolidColorBrush Color="{StaticResource GrayColor}"/> | |
</TextBlock.Foreground> | |
</TextBlock> | |
</Grid> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Style x:Key="PlayAppBarButtonStyle" TargetType="ButtonBase" BasedOn="{StaticResource AppBarButtonStyle}"> | |
<Setter Property="AutomationProperties.AutomationId" Value="PlayAppBarButton"/> | |
<Setter Property="AutomationProperties.Name" Value="Play"/> | |
<Setter Property="Content" Value=""/> | |
</Style> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static bool IsNetworkConnected | |
{ | |
get | |
{ | |
var profile = NetworkInformation.GetInternetConnectionProfile(); | |
return ((profile != null) && | |
(profile.GetNetworkConnectivityLevel() == NetworkConnectivityLevel.InternetAccess)); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public async void GuardarImagen() | |
{ | |
// Obtener el directorio donde se guardará la imagen, sino existe se crea, si existe se abre. | |
var folder = await ApplicationData.Current.LocalFolder.CreateFolderAsync(NombreDirImagenes, CreationCollisionOption.OpenIfExists); | |
//Instanciar un FilePicker para obtener la imagen y definir algunos de sus atributos como filtros, lugar de inicio y modo de vista de los archivos. | |
var imagenPicker = new FileOpenPicker { CommitButtonText = "Guardar Imagen" }; | |
imagenPicker.FileTypeFilter.Add(".jpg"); | |
imagenPicker.FileTypeFilter.Add(".jpeg"); | |
imagenPicker.FileTypeFilter.Add(".png"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="es"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Demo Garlic</title> | |
<!--[if IE 7]> | |
<script src="js/localstorageshim.min.js" type="text/javascript"></script> | |
<![endif]--> | |
<script src="js/jquery-1.8.2.min.js" type"text/javascript"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE [MiBaseDeDatos] | |
GO | |
SET ANSI_NULLS ON | |
GO | |
SET QUOTED_IDENTIFIER ON | |
GO | |
CREATE PROCEDURE [dbo].[Send_Emails_Tasks] | |
AS | |
BEGIN |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace UCA\SGExaBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use UCA\SGExaBundle\Entity\Mensaje; | |
use UCA\SGExaBundle\Entity\Usuario; | |
use UCA\SGExaBundle\Entity\Plantilla; | |
use UCA\SGExaBundle\Form\MensajeType; | |
use Symfony\Component\HttpFoundation\Request; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace UCA\SGExaBundle\Form; | |
use Symfony\Component\Form\FormBuilderInterface; | |
use Symfony\Component\Form\AbstractType; | |
class MensajeType extends AbstractType | |
{ | |
public function buildForm(FormBuilderInterface $builder, array $options) |