This file contains 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
// Se crea el documento con el tamaño de página tradicional | |
Document doc = new Document(PageSize.LETTER); | |
// Indicamos donde vamos a guardar el documento | |
PdfWriter writer = PdfWriter.GetInstance(doc, | |
new FileStream(@"C:\nombreDoc.pdf", FileMode.Create)); | |
// Se le coloca el título y el autor | |
// **Nota: Esto no será visible en el documento | |
doc.AddTitle("Mi primer PDF"); | |
doc.AddCreator("Ricardo Carrasco S.-"); |
This file contains 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
<?xml version="1.0" encoding="utf-8" ?> | |
<configuration> | |
<configSections> | |
</configSections> | |
<connectionStrings> | |
<add name="connection" connectionString="Data Source=RICARDO-PC\SQLEXPRESS;Initial Catalog=graficos;Integrated Security=True" | |
providerName="System.Data.SqlClient" /> | |
<startup> | |
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> | |
</startup> |
This file contains 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
<?xml version="1.0" encoding="utf-8" ?> | |
<configuration> | |
<configSections> | |
</configSections> | |
<connectionStrings> | |
<add name="connection" connectionString="Data Source=|DataDirectory|NombreBD.db;Version=3;New=False;Compress=True;" | |
providerName="System.Data.SQLite" /> | |
</connectionStrings> | |
<startup> | |
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> |
This file contains 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
//referencias | |
//System.configuration; | |
//System.Data.SQLite; | |
//System.Windows.Forms; | |
using System; | |
using System.Collections.Generic; | |
using System.Configuration; | |
using System.Data; |
This file contains 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
<Button Margin="3"> | |
<StackPanel> | |
<TextBlock Margin="3" Text="Texto del boton"></TextBlock> | |
<Image Source="C:\Users\Ricardo\Desktop\link.jpg" Stretch="None" Height="120"></Image> | |
</StackPanel> | |
</Button> |
This file contains 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
<Button Margin="3"> | |
<Grid> | |
<Polygon Points="100,25 125,0 200,25 125, 50" | |
Fill="Blue"></Polygon> | |
<Polygon Points="100,25 75,0 0,25 75, 50" | |
Fill="White"></Polygon> | |
</Grid> | |
</Button> |
This file contains 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
<Canvas> | |
<Rectangle Fill="Blue" Stroke="Black" Canvas.Left="40" | |
Canvas.Top="40" Height="40" Width="40"> | |
</Rectangle> | |
<Ellipse Fill="Green" Stroke="Blue" StrokeThickness="2" | |
Canvas.Left="60" Canvas.Top="120" Height="55" Width="55"> | |
</Ellipse> | |
<Path Stroke="DarkBlue" StrokeThickness="3"> | |
<Path.Data> |
This file contains 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
#include <stdio.h> | |
#include <Windows.h> | |
#include <conio.h> | |
#include <stdlib.h> | |
#include <list> | |
#include <mmsystem.h> | |
using namespace std; | |
#define ARRIBA 72 | |
#define IZQUIERDA 75 |
This file contains 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 bool validarRut(string rut ) { | |
bool validacion = false; | |
try | |
{ | |
rut = rut.ToUpper(); | |
rut = rut.Replace(".", ""); | |
rut = rut.Replace("-", ""); | |
int rutAux = int.Parse(rut.Substring(0, rut.Length - 1)); | |
char dv = char.Parse(rut.Substring(rut.Length - 1, 1)); |
OlderNewer