Anda di halaman 1dari 28

MANUAL DE TCNICO

MANUAL DE TCNICO
Introduccin
Este manual tcnico ha sido desarrollado con la finalidad de dar a conocer al
personal paso a paso como se dise, programo y desarroll el sistema de
informacin llamado Los tres pinitos, mostrando el diseo de cada pantalla de
interfaz del sistema y que herramientas fueron necesarias del programa Visual
Studio y cuantas se colocaron en cada una de ellas. Al igual que se mostrara
el cdigo de cada herramienta para que el diseo de la interfaz funcione
correctamente sin complicacin alguna.

Este ser el cdigo y el diseo para la pantalla de interfaz donde colocamos un


ProgressBar, para que cargue al ingresar al sistema y un label con la palabra
ingresando, lo cual como se muestra el usuario est ingresando al sistema.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication2
{
public partial class Inicio3 : Form
{
public Inicio3()
{
InitializeComponent();
}
private void timer1_Tick(object sender, EventArgs e)
{
this.progressBar1.Increment(1);
if (progressBar1.Value == 100) this.timer1.Stop();
}

private void Inicio3_Load(object sender, EventArgs e)


{

}
}
}

Este es el diseo y el cdigo de la pantalla del sistema de inicio en donde se


coloc un PictureBox con el logotipo del sistema y dos Label uno haciendo la
bienvenida al usuario y otro indicando el nombre del sistema.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Threading;
namespace WindowsFormsApplication11
{
public partial class Form1 : Form
{
public Form1()
{
Thread tardar = new Thread(new ThreadStart(pantalla));
tardar.Start();
Thread.Sleep(8000);
InitializeComponent();
tardar.Abort();

}
public void pantalla() { Application.Run(new Inicio3()); }

private void pictureBox1_Click(object sender, EventArgs e)


{
usuario inicio = new usuario();
inicio.Show();

}
}
}

Este es el diseo y el cdigo de la pantalla de registro de usuario donde se


colocaron cuatro Label uno con la frase inicio de sesin, otro con la palabra
usuario, otro con la palabra contrasea y otro con el nombre del sistema. Al
igual que se colocaron dos texbox uno para que el usuario escriba su nombre y
otro para que escriba su contrasea para poder ingresar al sistema
correctamente. Tambin se coloc un picturebox con el logotipo del sistema.
Adems de un toolstrip con el nombre del sistema y un button que servir para
poder acceder al sistema.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication11
{
public partial class usuario : Form
{
public usuario()
{
InitializeComponent();
this.ttmsj.SetToolTip(this.textBox1, "Ingrese su Nombre");
6

this.ttmsj.SetToolTip(this.textBox2, "Ingrese su Contrasea");


}
private void label1_Click(object sender, EventArgs e)
{
}
private void toolStripButton1_Click(object sender, EventArgs e)
{
}
private void toolStrip1_ItemClicked(object sender,
ToolStripItemClickedEventArgs e)
{
}
private void toolStripButton2_Click(object sender, EventArgs e)
{
this.Close();
}
private void button1_Click(object sender, EventArgs e)
{
pantalla_inicio inicio = new pantalla_inicio();
inicio.Show();
}
private void usuario_Load(object sender, EventArgs e)
{
}
}
}

Este es el diseo y el cdigo de la pantalla de inicio del sistema donde se


colocaron nueve picturebox indicando registro, recordatorios, notas, papelera,
ayuda, regsitro de productos y el ultimo con el logotipo del sistema y seis label
con las palabras ya dichas. Ademas tambien se coloco un timer y un label para
que pueda verse la hora.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication2
{
public partial class pantalla_inicio : Form
{
public pantalla_inicio()
{
InitializeComponent();
}
private void linkLabel1_LinkClicked(object sender,
LinkLabelLinkClickedEventArgs e)
{

this.Close();
}
private void timer1_Tick(object sender, EventArgs e)
{
timer1.Enabled = true;
timer1.Interval = 25;
label1.Text = DateTime.Now.ToLongTimeString();
}

private void button7_Click(object sender, EventArgs e)


{
Notas inicio = new Notas();
inicio.Show();
}
private void label6_Click(object sender, EventArgs e)
{
}
private void pantalla_inicio_Load(object sender, EventArgs e)
{
}
private void pictureBox2_Click(object sender, EventArgs e)
{

Registro inicio = new Registro();


inicio.Show();
}
private void pictureBox3_Click(object sender, EventArgs e)
{

Recordatorios inicio = new Recordatorios();


inicio.Show();
}

private void pictureBox5_Click(object sender, EventArgs e)


{
Papelera inicio = new Papelera();
inicio.Show();
}

private void pictureBox7_Click(object sender, EventArgs e)


{
Ayuda inicio = new Ayuda();
inicio.Show();
}
private void pictureBox6_Click(object sender, EventArgs e)
{
Bandeja_de_productos inicio = new Bandeja_de_productos();
inicio.Show();
}
private void label7_Click(object sender, EventArgs e)
{
}
private void label8_Click(object sender, EventArgs e)
{
}

10

Este es el diseo y el cdigo de la pantalla de interfaz donde se colocaron seis


textbox y siete label para poder poner los datos del producto y as poder
obtener la informacin deseada del producto. Adems se coloc un binding
que sirve para poder agregar, eliminar o cambiar de producto

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication2
{
public partial class Registro : Form
{
public Registro()
{
InitializeComponent();
}
private void Registro_Load(object sender, EventArgs e)
{

11

// TODO: esta lnea de cdigo carga datos en la tabla


'lalalalaDataSet.Copia_de_Copia_de_Copia_de_Tabla1' Puede moverla o
quitarla segn sea necesario.
this.copia_de_Copia_de_Copia_de_Tabla1TableAdapter.Fill(this.lalalalaDataSe
t.Copia_de_Copia_de_Copia_de_Tabla1);
}
private void timer1_Tick(object sender, EventArgs e)
{
timer1.Enabled = true;
timer1.Interval = 25;
label1.Text = DateTime.Now.ToLongTimeString();
}
}
}

12

Este es el diseo y el cdigo de la pantalla de interfaz de recordatorios donde


se colocaron tres button y dos label donde podr verse la hora elegida para
hacer los recordatorios y un textbox donde el usuario podr elegir la meloda
que sea de su agrado para el recordatorio. Adems tambin se coloc un
toolstrip con el nombre y el logotipo del sistema.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication2
{
public partial class Recordatorios : Form
{
public Recordatorios()
{
InitializeComponent();

13

string musica;

private void button1_Click(object sender, EventArgs e)


{
OpenFileDialog open = new OpenFileDialog();
if (open.ShowDialog() == DialogResult.OK)
{
musica = open.FileName;
textBox1.Text = open.SafeFileName;

}
}

private void button4_Click(object sender, EventArgs e)


{

label2.Text = maskedTextBox1.Text;
maskedTextBox1.Text = "";
timer2.Start();
}

private void button5_Click(object sender, EventArgs e)


{
axWindowsMediaPlayer1.Ctlcontrols.stop();
timer2.Stop();
}

private void timer1_Tick(object sender, EventArgs e)


{
label1.Text = DateTime.Now.Hour.ToString("00") + ":" +
DateTime.Now.Minute.ToString("00") + ":" +
DateTime.Now.Second.ToString("00");
14

private void timer2_Tick(object sender, EventArgs e)


{
if (label1.Text == label2.Text)
{
axWindowsMediaPlayer1.URL = musica;
}
}

private void label1_Click(object sender, EventArgs e)


{

}
}

15

Este es el diseo y el cdigo de la pantalla de interfaz de herramientas donde


se colocaron dos buuton con las opciones de calculadora y navegador donde el
usuario podr hacer todas las operaciones que desee y tambin donde podr
acceder a cualquier pgina en internet. Adems tambin se coloc un toolstrip
con la hora, el logotipo y el nombre del sistema.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication2
{
public partial class Papelera : Form
{
public Papelera()
{
InitializeComponent();
}
private void calculadoraToolStripMenuItem_Click(object sender, EventArgs
e)
{
}

16

private void timer1_Tick(object sender, EventArgs e)


{
timer1.Enabled = true;
timer1.Interval = 25;
label1.Text = DateTime.Now.ToLongTimeString();
}

private void button2_Click(object sender, EventArgs e)


{
Internet inicio = new Internet();
inicio.Show();
}
private void button3_Click(object sender, EventArgs e)
{
Calculadora inicio = new Calculadora();
inicio.Show();
}
}
}

17

private void button25_Click(object sender, EventArgs e)


{
Cantidad1 = double.Parse(textBox1.Text);
resultado = Cantidad1;
textBox1.Text = Math.Pow(Cantidad1, -1).ToString();
}
private void button26_Click(object sender, EventArgs e)
{
Cantidad1 = double.Parse(textBox1.Text);
resultado = Cantidad1;
textBox1.Text = Math.Pow(Cantidad1, 2).ToString();
}
private void button28_Click(object sender, EventArgs e)
{
Cantidad1 = double.Parse(textBox1.Text);
resultado = Cantidad1;
textBox1.Text = Math.Pow( 10,Cantidad1).ToString();
}
private void button30_Click(object sender, EventArgs e)
{
Cantidad1 = double.Parse(textBox1.Text);
resultado = Cantidad1;
textBox1.Text = Math.Sin(Cantidad1).ToString();
}

18

private void button31_Click(object sender, EventArgs e)


{
Cantidad1 = double.Parse(textBox1.Text);
resultado = Cantidad1;
textBox1.Text = Math.Cos(Cantidad1).ToString();
}
private void button32_Click(object sender, EventArgs e)
{
Cantidad1 = double.Parse(textBox1.Text);
resultado = Cantidad1;
textBox1.Text = Math.Tan(Cantidad1).ToString();
}
private void button35_Click(object sender, EventArgs e)
{
Cantidad1 = double.Parse(textBox1.Text);
resultado = Cantidad1;
textBox1.Text = Math.Sinh(Cantidad1).ToString();
}
private void button36_Click(object sender, EventArgs e)
{
Cantidad1 = double.Parse(textBox1.Text);
resultado = Cantidad1;
textBox1.Text = Math.Cosh(Cantidad1).ToString();
}
private void button37_Click(object sender, EventArgs e)
{
Cantidad1 = double.Parse(textBox1.Text);
resultado = Cantidad1;
textBox1.Text = Math.Tanh(Cantidad1).ToString();
}
private void button10_Click(object sender, EventArgs e)
{
textBox1.Clear();
}
private void button5_Click(object sender, EventArgs e)
{
textBox1.Clear();
}
19

private void button1_Click(object sender, EventArgs e)


{
textBox1.Clear();
}
private void button3_Click(object sender, EventArgs e)
{
operador = "%";
Cantidad2 = double.Parse(textBox1.Text);
textBox1.Clear();
}
}
}

20

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication2
{
public partial class Internet : Form
{
List<string> Favoritos = new List<string>();
public Internet()
{
InitializeComponent();
}

private void Internet_Load(object sender, EventArgs e)


{
webBrowser1.Navigate("www.google.com.mx");
txtdireccion.Text = "www.google.com.mx";
}
private void btnIr_Click(object sender, EventArgs e)
{
21

webBrowser1.Navigate(txtdireccion.Text);
}
private void btnAtras_Click(object sender, EventArgs e)
{
webBrowser1.GoBack();
}
private void btnFavorito_Click(object sender, EventArgs e)
{
Favoritos.Add(webBrowser1.Url.ToString());
}
}
}

22

Este es el diseo y el cdigo de la pantalla de interfaz de notas, donde el


usuario podr hacer cualquier tipo de notas las cuales podr cambiar el color y
formato de letra, al igual que podr guardarlas en su equipo.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

23

using System.Windows.Forms;
namespace WindowsFormsApplication2
{
public partial class Notas : Form
{
public Notas()
{
InitializeComponent();
}
private void richTextBox1_TextChanged(object sender, EventArgs e)
{
}
private void abrirToolStripMenuItem_Click(object sender, EventArgs e)
{
string r;
openFileDialog1.ShowDialog();
System.IO.StreamReader file = new
System.IO.StreamReader(openFileDialog1.FileName);
r = file.ReadLine ();
richTextBox1.Text = r.ToString ();

}
private void grabarToolStripMenuItem_Click(object sender, EventArgs e)
{
saveFileDialog1.FileName = " Sin titulo txt";
var sf = saveFileDialog1.ShowDialog();
if (sf == DialogResult.OK)
{
using (var savefile = new
System.IO.StreamWriter(saveFileDialog1.FileName))
{
savefile.WriteLine(richTextBox1.Text);
}
}
}
private void cerraToolStripMenuItem_Click(object sender, EventArgs e)
24

{
Environment.Exit(0);
}
private void colorToolStripMenuItem_Click(object sender, EventArgs e)
{
var cl = colorDialog1.ShowDialog();
if (cl == DialogResult.OK)
{
richTextBox1.ForeColor = colorDialog1.Color;
}
}
private void formatoToolStripMenuItem_Click(object sender, EventArgs e)
{
var fm = fontDialog1.ShowDialog();
if (fm == DialogResult.OK)
{
richTextBox1.Font = fontDialog1.Font;
}
}
private void timer1_Tick(object sender, EventArgs e)
{
timer1.Enabled = true;
timer1.Interval = 25;
label1.Text = DateTime.Now.ToLongTimeString();
}
}
}

25

Este es el diseo y el cdigo de bsqueda de productos donde se colocaron


ocho label indicando cada propiedad del producto solicitado y seis textbox
donde aparecer cada caracterstica del producto y dos button para poder
aceptar y cancelar la bsqueda del producto.

using
using
using
using
using
using
using
using
using

System;
System.Collections.Generic;
System.ComponentModel;
System.Data;
System.Drawing;
System.Linq;
System.Text;
System.Threading.Tasks;
System.Windows.Forms;

namespace WindowsFormsApplication2
{
public partial class Bandeja_de_productos : Form
{
public Bandeja_de_productos()
{
InitializeComponent();
}
private void button3_Click(object sender, EventArgs e)
{
this.Close();
}
private void button2_Click(object sender, EventArgs e)
{
this.Close();
}
private void Bandeja_de_productos_Load(object sender, EventArgs e)
{

26

// TODO: esta lnea de cdigo carga datos en la tabla


'lalalalaDataSet.Copia_de_Copia_de_Tabla1' Puede moverla o quitarla segn sea
necesario.
this.copia_de_Copia_de_Tabla1TableAdapter.Fill(this.lalalalaDataSet.Copia_de_Copi
a_de_Tabla1);
// TODO: esta lnea de cdigo carga datos en la tabla
'lalalalaDataSet.Copia_de_Copia_de_Copia_de_Tabla1' Puede moverla o quitarla
segn sea necesario.
this.copia_de_Copia_de_Copia_de_Tabla1TableAdapter.Fill(this.lalalalaDataSet.Copi
a_de_Copia_de_Copia_de_Tabla1);
}

}
}

27

Anda mungkin juga menyukai