-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanual.cs
95 lines (91 loc) · 3.17 KB
/
manual.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/*
* Created by SharpDevelop.
* User: genesis
* Date: 17/06/2013
* Time: 12:51
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Drawing;
using System.Windows.Forms;
namespace matriz
{
/// <summary>
/// Description of manual.
/// </summary>
public partial class frm_manual : Form
{
int contador = 1;
public frm_manual()
{
InitializeComponent();
PcbxPagina.BackgroundImage = Properties.Resources.Imagen1;
PcbxPagina.BackgroundImageLayout = ImageLayout.Stretch;
}
private void BtnAnterior_Click(object sender, EventArgs e)
{
if(contador > 1 && contador <=6)
{
contador -= 1;
if (contador == 1)
{
PcbxPagina.BackgroundImage = Properties.Resources.Imagen1;
PcbxPagina.BackgroundImageLayout = ImageLayout.Stretch;
}
if (contador == 2)
{
PcbxPagina.BackgroundImage = Properties.Resources.Imagen2;
PcbxPagina.BackgroundImageLayout = ImageLayout.Stretch;
}
if (contador == 3)
{
PcbxPagina.BackgroundImage = Properties.Resources.Imagen3;
PcbxPagina.BackgroundImageLayout = ImageLayout.Stretch;
}
if (contador == 4)
{
PcbxPagina.BackgroundImage = Properties.Resources.Imagen4;
PcbxPagina.BackgroundImageLayout = ImageLayout.Stretch;
}
if (contador == 5)
{
PcbxPagina.BackgroundImage = Properties.Resources.Imagen5;
PcbxPagina.BackgroundImageLayout = ImageLayout.Stretch;
}
}
}
private void BtnSiguiente_Click(object sender, EventArgs e)
{
if (contador >= 1 && contador < 6)
{
contador += 1;
if (contador == 2)
{
PcbxPagina.BackgroundImage = Properties.Resources.Imagen2;
PcbxPagina.BackgroundImageLayout = ImageLayout.Stretch;
}
if (contador == 3)
{
PcbxPagina.BackgroundImage = Properties.Resources.Imagen3;
PcbxPagina.BackgroundImageLayout = ImageLayout.Stretch;
}
if (contador == 4)
{
PcbxPagina.BackgroundImage = Properties.Resources.Imagen4;
PcbxPagina.BackgroundImageLayout = ImageLayout.Stretch;
}
if (contador == 5)
{
PcbxPagina.BackgroundImage = Properties.Resources.Imagen5;
PcbxPagina.BackgroundImageLayout = ImageLayout.Stretch;
}
if (contador == 6)
{
PcbxPagina.BackgroundImage = Properties.Resources.Imagen6;
PcbxPagina.BackgroundImageLayout = ImageLayout.Stretch;
}
}
}
}
}