-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconsultas_central.cs
123 lines (100 loc) · 4.5 KB
/
consultas_central.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
118
119
120
121
122
123
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 MundoMusical.XBASE;
using MundoMusical.CONSULTAS.CLIENTES;
using MundoMusical.CONSULTAS.VENTAS;
using MundoMusical.PRODUCT;
using MundoMusical.CONSULTAS.INICIOS_SESION;
namespace MundoMusical.CONSULTAS
{
public partial class consultas_central : baseformextends
{
private consulta_clientes consclientes;
private consulta_ventas consventas;
private seeproductsinternal consproductos;
private consultas_inicios consinicios;
public consultas_central()
{
InitializeComponent();
this.initialsettings();
}
public consultas_central(Central2 central)
{
this.central = central;
InitializeComponent();
this.initialsettings();
this.FormClosed += (sender, args) => { this.central.consultas = null; };
}
private void initialsettings()
{
this.Text = "Consultas";
}
private void consultas_central_Load(object sender, EventArgs e)
{
this.ActiveControl = this.panelcentral;
}
private void blapse_Click(object sender, EventArgs e)
{
this.lblinst.Location = new Point(this.panelcentral.Width / 2 - this.lblinst.Width / 2, this.panelcentral.Height / 2 - this.lblinst.Height / 2);
}
private void btnventas_Click(object sender, EventArgs e)
{
this.lblinst.Visible = false;
this.panelcentral.Controls.Clear();
this.panelventas.BackColor = genericDefinitions.btnselectedcolor;
this.panelclientes.BackColor = genericDefinitions.btnfreecolor;
this.panelproductos.BackColor = genericDefinitions.btnfreecolor;
this.panelSesion.BackColor = genericDefinitions.btnfreecolor;
this.consventas = new consulta_ventas(this) {TopLevel = false};
this.panelcentral.Controls.Add(this.consventas);
this.consventas.Dock = DockStyle.Fill;
this.consventas.Show();
}
private void btnclientes_Click(object sender, EventArgs e)
{
this.lblinst.Visible = false;
this.panelcentral.Controls.Clear();
this.panelventas.BackColor = genericDefinitions.btnfreecolor;
this.panelclientes.BackColor = genericDefinitions.btnselectedcolor;
this.panelproductos.BackColor = genericDefinitions.btnfreecolor;
this.panelSesion.BackColor = genericDefinitions.btnfreecolor;
this.consclientes = new consulta_clientes(this) { TopLevel = false };
this.consclientes.Dock = DockStyle.Fill;
this.panelcentral.Controls.Add(this.consclientes);
this.consclientes.Show();
}
private void btnproductos_Click(object sender, EventArgs e)
{
this.lblinst.Visible = false;
this.panelcentral.Controls.Clear();
this.panelventas.BackColor = genericDefinitions.btnfreecolor;
this.panelclientes.BackColor = genericDefinitions.btnfreecolor;
this.panelproductos.BackColor = genericDefinitions.btnselectedcolor;
this.panelSesion.BackColor = genericDefinitions.btnfreecolor;
this.consproductos = new seeproductsinternal(this) {TopLevel = false};
this.panelcentral.Controls.Add(this.consproductos);
this.consproductos.Dock = DockStyle.Fill;
this.consproductos.Show();
}
private void button1_Click(object sender, EventArgs e)
{
this.lblinst.Visible = false;
this.panelcentral.Controls.Clear();
this.panelventas.BackColor = genericDefinitions.btnfreecolor;
this.panelclientes.BackColor = genericDefinitions.btnfreecolor;
this.panelproductos.BackColor = genericDefinitions.btnfreecolor;
this.panelSesion.BackColor = genericDefinitions.btnselectedcolor;
this.consinicios = new consultas_inicios(this) {TopLevel = false};
this.consinicios.Dock = DockStyle.Fill;
this.panelcentral.Controls.Add(this.consinicios);
this.consinicios.Show();
}
}
}