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
protected void Page_Load(object sender, EventArgs e) | |
{ | |
DataSet ds = RunQuery("Select topicid,name from Topics where Parent_ID IS NULL"); | |
for (int i = 0; i < ds.Tables[0].Rows.Count; i++) | |
{ | |
TreeNode root = new TreeNode(ds.Tables[0].Rows[i][1].ToString(),ds.Tables[0].Rows[i][0].ToString()); | |
root.SelectAction = TreeNodeSelectAction.Expand; | |
CreateNode(root); | |
TreeView1.Nodes.Add(root); | |
} |
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 NotInheritable Class Singleton | |
Private Shared _Instance As Singleton = Nothing | |
Private Shared ReadOnly _Sync As New Object | |
Private Sub New() | |
End Sub | |
Public Shared ReadOnly Property Instance() As Singleton | |
Get |
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 static bool ExisteBaldosa(Uri fuente) | |
{ | |
if (ShellTile.ActiveTiles.Where((m) => m.NavigationUri == fuente).Count() == 0) | |
return false; | |
else return true; | |
} | |
// uso | |
if (ExisteBaldosa(NavigationService.Source) == true) |
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) |
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
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
<!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
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
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
<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> | |
OlderNewer