-
Notifications
You must be signed in to change notification settings - Fork 0
/
Principal.cs
117 lines (99 loc) · 3.77 KB
/
Principal.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
using Guna.UI2.WinForms;
using System;
using System.Linq;
using System.Windows.Forms;
namespace SmartPhone7
{
public partial class Principal : Form
{
public Principal()
{
InitializeComponent();
}
public static int posicionX, PosicionY;
public void container(object _form)
{
if (guna2Panel_container.Controls.Count > 0) guna2Panel_container.Controls.Clear();
Form fm = _form as Form;
fm.TopLevel = false;
fm.FormBorderStyle = FormBorderStyle.None;
fm.Dock = DockStyle.Fill;
guna2Panel_container.Controls.Add(fm);
guna2Panel_container.Tag = fm;
fm.Show();
}
private void guna2TextBox1_TextChanged(object sender, EventArgs e)
{
// Buscar botones en el panel
foreach (var btn in panelButtons.Controls.OfType<Guna2Button>())
{
btn.Visible = btn.Text.ToLower().Contains(txtSearchButtom.Text.ToLower().Trim());
}
}
private void guna2Button1_Click(object sender, EventArgs e)
{
label_val.Text = "Lista De Usuarios";
guna2PictureBox_val.Image = Properties.Resources.person__1_;
container(new Inicio());
}
private void Principal_Load(object sender, EventArgs e)
{
guna2ShadowForm1.SetShadowForm(this);
label_val.Text = "Descripción general del panel";
guna2PictureBox_val.Image = Properties.Resources.dashboard__12_;
container( new Inicio());
}
private void guna2Button2_Click(object sender, EventArgs e)
{
guna2ShadowForm1.SetShadowForm(this);
label_val.Text = "Facturacion";
guna2PictureBox_val.Image = Properties.Resources.dashboard__12_;
container(new ListadoFactura());
}
private void guna2Button5_Click(object sender, EventArgs e)
{
guna2ShadowForm1.SetShadowForm(this);
label_val.Text = "Equipos";
guna2PictureBox_val.Image = Properties.Resources.user__5_;
container(new ListadoProducto());
}
private void guna2Button6_Click(object sender, EventArgs e)
{
guna2ShadowForm1.SetShadowForm(this);
label_val.Text = "Clientes";
guna2PictureBox_val.Image = Properties.Resources.dashboard__12_;
container(new ListadoClientes());
}
private void guna2Button4_Click(object sender, EventArgs e)
{
guna2ShadowForm1.SetShadowForm(this);
label_val.Text = "Tecnicos";
guna2PictureBox_val.Image = Properties.Resources.user__5_;
container(new ListadoTecnicos());
}
private void guna2Button8_Click(object sender, EventArgs e)
{
}
private void guna2CircleButton1_Click(object sender, EventArgs e)
{
guna2ShadowForm1.SetShadowForm(this);
label_val.Text = "Facturacion";
guna2PictureBox_val.Image = Properties.Resources.dashboard__12_;
container(new ListadoFactura());
}
private void guna2Button8_Click_1(object sender, EventArgs e)
{
guna2ShadowForm1.SetShadowForm(this);
label_val.Text = "Servicios";
guna2PictureBox_val.Image = Properties.Resources.dashboard__12_;
container(new ListadoServicios());
}
private void guna2Button3_Click(object sender, EventArgs e)
{
guna2ShadowForm1.SetShadowForm(this);
label_val.Text = "Usuarios";
guna2PictureBox_val.Image = Properties.Resources.user__5_;
container(new ListadoUsuarios());
}
}
}