cuentas
This commit is contained in:
Generated
+257
@@ -0,0 +1,257 @@
|
||||
namespace compabetov2
|
||||
{
|
||||
partial class cuentas
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.pictureBox7 = new System.Windows.Forms.PictureBox();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.button2 = new System.Windows.Forms.Button();
|
||||
this.button3 = new System.Windows.Forms.Button();
|
||||
this.button4 = new System.Windows.Forms.Button();
|
||||
this.button5 = new System.Windows.Forms.Button();
|
||||
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
|
||||
this.panelCuenta = new System.Windows.Forms.FlowLayoutPanel();
|
||||
this.panel2.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).BeginInit();
|
||||
this.flowLayoutPanel1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// panel2
|
||||
//
|
||||
this.panel2.BackColor = System.Drawing.Color.Transparent;
|
||||
this.panel2.Controls.Add(this.pictureBox7);
|
||||
<<<<<<< HEAD:cuentas.Designer.cs
|
||||
this.panel2.Location = new System.Drawing.Point(2, 2);
|
||||
this.panel2.Margin = new System.Windows.Forms.Padding(2);
|
||||
=======
|
||||
this.panel2.Location = new System.Drawing.Point(3, 2);
|
||||
this.panel2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||
>>>>>>> 29c502b923393adeb58f76ab423298ad2bef9d0c:Cuentas/cuentas.Designer.cs
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Size = new System.Drawing.Size(312, 263);
|
||||
this.panel2.TabIndex = 8;
|
||||
//
|
||||
// pictureBox7
|
||||
//
|
||||
this.pictureBox7.Image = global::compabetov2.Properties.Resources.HomeroMenu;
|
||||
<<<<<<< HEAD:cuentas.Designer.cs
|
||||
this.pictureBox7.Location = new System.Drawing.Point(48, 28);
|
||||
this.pictureBox7.Margin = new System.Windows.Forms.Padding(2);
|
||||
=======
|
||||
this.pictureBox7.Location = new System.Drawing.Point(64, 34);
|
||||
this.pictureBox7.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||
>>>>>>> 29c502b923393adeb58f76ab423298ad2bef9d0c:Cuentas/cuentas.Designer.cs
|
||||
this.pictureBox7.Name = "pictureBox7";
|
||||
this.pictureBox7.Size = new System.Drawing.Size(190, 197);
|
||||
this.pictureBox7.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
|
||||
this.pictureBox7.TabIndex = 8;
|
||||
this.pictureBox7.TabStop = false;
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.BackColor = System.Drawing.Color.Transparent;
|
||||
this.button1.FlatAppearance.BorderSize = 0;
|
||||
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F);
|
||||
this.button1.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
|
||||
this.button1.Image = global::compabetov2.Properties.Resources.Menui1;
|
||||
this.button1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
<<<<<<< HEAD:cuentas.Designer.cs
|
||||
this.button1.Location = new System.Drawing.Point(2, 220);
|
||||
this.button1.Margin = new System.Windows.Forms.Padding(2);
|
||||
=======
|
||||
this.button1.Location = new System.Drawing.Point(3, 269);
|
||||
this.button1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||
>>>>>>> 29c502b923393adeb58f76ab423298ad2bef9d0c:Cuentas/cuentas.Designer.cs
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0);
|
||||
this.button1.Size = new System.Drawing.Size(312, 114);
|
||||
this.button1.TabIndex = 8;
|
||||
this.button1.Text = "Menú";
|
||||
this.button1.UseVisualStyleBackColor = false;
|
||||
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// button2
|
||||
//
|
||||
this.button2.BackColor = System.Drawing.Color.Transparent;
|
||||
this.button2.FlatAppearance.BorderSize = 0;
|
||||
this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.button2.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F);
|
||||
this.button2.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
|
||||
this.button2.Image = global::compabetov2.Properties.Resources.estadisticasi;
|
||||
this.button2.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
<<<<<<< HEAD:cuentas.Designer.cs
|
||||
this.button2.Location = new System.Drawing.Point(2, 317);
|
||||
this.button2.Margin = new System.Windows.Forms.Padding(2);
|
||||
=======
|
||||
this.button2.Location = new System.Drawing.Point(3, 387);
|
||||
this.button2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||
>>>>>>> 29c502b923393adeb58f76ab423298ad2bef9d0c:Cuentas/cuentas.Designer.cs
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0);
|
||||
this.button2.Size = new System.Drawing.Size(312, 114);
|
||||
this.button2.TabIndex = 9;
|
||||
this.button2.Text = "Estadisticas";
|
||||
this.button2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
this.button2.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// button3
|
||||
//
|
||||
this.button3.BackColor = System.Drawing.Color.Transparent;
|
||||
this.button3.FlatAppearance.BorderSize = 0;
|
||||
this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.button3.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F);
|
||||
this.button3.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
|
||||
this.button3.Image = global::compabetov2.Properties.Resources.productoi;
|
||||
this.button3.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
<<<<<<< HEAD:cuentas.Designer.cs
|
||||
this.button3.Location = new System.Drawing.Point(2, 414);
|
||||
this.button3.Margin = new System.Windows.Forms.Padding(2);
|
||||
=======
|
||||
this.button3.Location = new System.Drawing.Point(3, 505);
|
||||
this.button3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||
>>>>>>> 29c502b923393adeb58f76ab423298ad2bef9d0c:Cuentas/cuentas.Designer.cs
|
||||
this.button3.Name = "button3";
|
||||
this.button3.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0);
|
||||
this.button3.Size = new System.Drawing.Size(312, 114);
|
||||
this.button3.TabIndex = 10;
|
||||
this.button3.Text = "Productos";
|
||||
this.button3.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// button4
|
||||
//
|
||||
this.button4.BackColor = System.Drawing.Color.Transparent;
|
||||
this.button4.FlatAppearance.BorderSize = 0;
|
||||
this.button4.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.button4.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F);
|
||||
this.button4.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
|
||||
this.button4.Image = global::compabetov2.Properties.Resources.reportesi;
|
||||
this.button4.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
<<<<<<< HEAD:cuentas.Designer.cs
|
||||
this.button4.Location = new System.Drawing.Point(2, 511);
|
||||
this.button4.Margin = new System.Windows.Forms.Padding(2);
|
||||
=======
|
||||
this.button4.Location = new System.Drawing.Point(3, 623);
|
||||
this.button4.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||
>>>>>>> 29c502b923393adeb58f76ab423298ad2bef9d0c:Cuentas/cuentas.Designer.cs
|
||||
this.button4.Name = "button4";
|
||||
this.button4.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0);
|
||||
this.button4.Size = new System.Drawing.Size(312, 114);
|
||||
this.button4.TabIndex = 11;
|
||||
this.button4.Text = "Reportes";
|
||||
this.button4.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// button5
|
||||
//
|
||||
this.button5.BackColor = System.Drawing.Color.Transparent;
|
||||
this.button5.FlatAppearance.BorderSize = 0;
|
||||
this.button5.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.button5.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F);
|
||||
this.button5.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
|
||||
this.button5.Image = global::compabetov2.Properties.Resources.sesionc;
|
||||
this.button5.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
<<<<<<< HEAD:cuentas.Designer.cs
|
||||
this.button5.Location = new System.Drawing.Point(2, 608);
|
||||
this.button5.Margin = new System.Windows.Forms.Padding(2);
|
||||
=======
|
||||
this.button5.Location = new System.Drawing.Point(3, 741);
|
||||
this.button5.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||
>>>>>>> 29c502b923393adeb58f76ab423298ad2bef9d0c:Cuentas/cuentas.Designer.cs
|
||||
this.button5.Name = "button5";
|
||||
this.button5.Padding = new System.Windows.Forms.Padding(51, 0, 0, 0);
|
||||
this.button5.Size = new System.Drawing.Size(312, 114);
|
||||
this.button5.TabIndex = 12;
|
||||
this.button5.Text = "Salir";
|
||||
this.button5.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// flowLayoutPanel1
|
||||
//
|
||||
this.flowLayoutPanel1.BackgroundImage = global::compabetov2.Properties.Resources.rec;
|
||||
this.flowLayoutPanel1.Controls.Add(this.panel2);
|
||||
this.flowLayoutPanel1.Controls.Add(this.button1);
|
||||
this.flowLayoutPanel1.Controls.Add(this.button2);
|
||||
this.flowLayoutPanel1.Controls.Add(this.button3);
|
||||
this.flowLayoutPanel1.Controls.Add(this.button4);
|
||||
this.flowLayoutPanel1.Controls.Add(this.button5);
|
||||
this.flowLayoutPanel1.Location = new System.Drawing.Point(-1, -1);
|
||||
<<<<<<< HEAD:cuentas.Designer.cs
|
||||
this.flowLayoutPanel1.Margin = new System.Windows.Forms.Padding(2);
|
||||
=======
|
||||
this.flowLayoutPanel1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||
>>>>>>> 29c502b923393adeb58f76ab423298ad2bef9d0c:Cuentas/cuentas.Designer.cs
|
||||
this.flowLayoutPanel1.Name = "flowLayoutPanel1";
|
||||
this.flowLayoutPanel1.Size = new System.Drawing.Size(324, 1061);
|
||||
this.flowLayoutPanel1.TabIndex = 8;
|
||||
//
|
||||
// panelCuenta
|
||||
//
|
||||
this.panelCuenta.Location = new System.Drawing.Point(524, 292);
|
||||
this.panelCuenta.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.panelCuenta.Name = "panelCuenta";
|
||||
this.panelCuenta.Size = new System.Drawing.Size(1108, 540);
|
||||
this.panelCuenta.TabIndex = 9;
|
||||
this.panelCuenta.Paint += new System.Windows.Forms.PaintEventHandler(this.panelCuenta_Paint);
|
||||
//
|
||||
// cuentas
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1827, 922);
|
||||
this.ControlBox = false;
|
||||
this.Controls.Add(this.panelCuenta);
|
||||
this.Controls.Add(this.flowLayoutPanel1);
|
||||
<<<<<<< HEAD:cuentas.Designer.cs
|
||||
this.Margin = new System.Windows.Forms.Padding(2);
|
||||
=======
|
||||
this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||
>>>>>>> 29c502b923393adeb58f76ab423298ad2bef9d0c:Cuentas/cuentas.Designer.cs
|
||||
this.Name = "cuentas";
|
||||
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
|
||||
this.Load += new System.EventHandler(this.cuentas_Load);
|
||||
this.panel2.ResumeLayout(false);
|
||||
this.panel2.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).EndInit();
|
||||
this.flowLayoutPanel1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Panel panel2;
|
||||
private System.Windows.Forms.PictureBox pictureBox7;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.Button button2;
|
||||
private System.Windows.Forms.Button button3;
|
||||
private System.Windows.Forms.Button button4;
|
||||
private System.Windows.Forms.Button button5;
|
||||
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
|
||||
private System.Windows.Forms.FlowLayoutPanel panelCuenta;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,187 @@
|
||||
using compabetov2.database;
|
||||
using compabetov2.database.modelos;
|
||||
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 compabetov2
|
||||
{
|
||||
public partial class cuentas : Form
|
||||
{
|
||||
private LoginModel loginPrincipal;
|
||||
public cuentas(LoginModel loginPrincipal)
|
||||
{
|
||||
InitializeComponent();
|
||||
this.loginPrincipal = loginPrincipal;
|
||||
llenarPanel();
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
// Cerrar el formulario de ventas
|
||||
this.Close();
|
||||
|
||||
// Verificar si ya hay una instancia del formulario principal
|
||||
MenuPrincipal menuprincipalForm = Application.OpenForms.OfType<MenuPrincipal>().FirstOrDefault();
|
||||
|
||||
if (menuprincipalForm == null)
|
||||
{
|
||||
// Si no hay una instancia, crear una nueva
|
||||
menuprincipalForm = new MenuPrincipal(loginPrincipal);
|
||||
|
||||
// Establecer el formulario principal como el formulario MDI padre
|
||||
menuprincipalForm.MdiParent = this.MdiParent;
|
||||
|
||||
// Mostrar el formulario principal
|
||||
menuprincipalForm.Show();
|
||||
}
|
||||
else
|
||||
{
|
||||
// Si ya hay una instancia, simplemente llevarlo al frente
|
||||
menuprincipalForm.BringToFront();
|
||||
}
|
||||
}
|
||||
|
||||
private void llenarPanel()
|
||||
{
|
||||
List<Cuenta> cuentas = service.conseguirCuentaDAO();
|
||||
panelCuenta.Controls.Clear();
|
||||
|
||||
foreach (Cuenta cuenta in cuentas)
|
||||
{
|
||||
TableLayoutPanel carta = new TableLayoutPanel();
|
||||
carta.RowCount = 1;
|
||||
carta.ColumnCount = 2;
|
||||
carta.Height = 100;
|
||||
carta.Width = 820;
|
||||
carta.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 55F));
|
||||
carta.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 45F));
|
||||
carta.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
|
||||
carta.BackColor = Color.Gray;
|
||||
|
||||
FlowLayoutPanel infoPanel = new FlowLayoutPanel();
|
||||
infoPanel.Dock = DockStyle.Fill;
|
||||
infoPanel.FlowDirection = FlowDirection.TopDown;
|
||||
|
||||
Label cliente = new Label();
|
||||
cliente.Text = $"Cliente: {cuenta.cliente}";
|
||||
cliente.Font = new Font(cliente.Font.FontFamily, 18);
|
||||
cliente.Width = 600;
|
||||
|
||||
Label fecha = new Label();
|
||||
fecha.Text = "Fecha: " + cuenta.fecha;
|
||||
fecha.Font = new Font(fecha.Font.FontFamily, 18);
|
||||
fecha.Width = 600;
|
||||
|
||||
Label total = new Label();
|
||||
total.Text = "Total: $" + cuenta.total;
|
||||
total.Font = new Font(total.Font.FontFamily, 18);
|
||||
total.Width = 600;
|
||||
|
||||
infoPanel.Controls.Add(fecha);
|
||||
infoPanel.Controls.Add(cliente);
|
||||
infoPanel.Controls.Add(total);
|
||||
|
||||
TableLayoutPanel HUDPanel = new TableLayoutPanel();
|
||||
HUDPanel.Dock = DockStyle.Fill;
|
||||
HUDPanel.RowCount = 1;
|
||||
HUDPanel.ColumnCount = 3;
|
||||
HUDPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33F));
|
||||
HUDPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33F));
|
||||
HUDPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33F));
|
||||
HUDPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
|
||||
|
||||
Button btnVer = new Button();
|
||||
btnVer.Text = "Ver";
|
||||
btnVer.Dock = DockStyle.Fill;
|
||||
btnVer.FlatStyle = FlatStyle.Flat;
|
||||
btnVer.FlatAppearance.BorderSize = 0;
|
||||
btnVer.BackColor = Color.FromArgb(33, 90, 255);
|
||||
btnVer.Font = new Font(btnVer.Font.FontFamily, 16);
|
||||
btnVer.ForeColor = Color.White;
|
||||
btnVer.Click += new EventHandler(delegate (object sender, EventArgs e)
|
||||
{
|
||||
List<DetalleCuentaModel> detalles = service.conseguirDetalleCuante(cuenta.id);
|
||||
string mensaje = $"Cliente: {cuenta.cliente}\n";
|
||||
foreach (DetalleCuentaModel detalle in detalles)
|
||||
{
|
||||
mensaje += $"{detalle.producto.nombre} - {detalle.cantidad}\n";
|
||||
}
|
||||
MessageBox.Show(mensaje);
|
||||
});
|
||||
|
||||
Button btnSaldar = new Button();
|
||||
btnSaldar.Text = "Saldar";
|
||||
btnSaldar.Dock = DockStyle.Fill;
|
||||
btnSaldar.FlatStyle = FlatStyle.Flat;
|
||||
btnSaldar.FlatAppearance.BorderSize = 0;
|
||||
btnSaldar.BackColor = Color.FromArgb(33, 90, 255);
|
||||
btnSaldar.Font = new Font(btnVer.Font.FontFamily, 16);
|
||||
btnSaldar.ForeColor = Color.White;
|
||||
btnSaldar.Click += new EventHandler(delegate (object sender, EventArgs e)
|
||||
{
|
||||
DialogResult result = MessageBox.Show("¿Está seguro de que desea saldar esta cuenta?",
|
||||
"Confirmación", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
||||
if (result == DialogResult.Yes)
|
||||
{
|
||||
List<DetalleCuentaModel> detalles = service.conseguirDetalleCuante(cuenta.id);
|
||||
if (service.saldarCuenta(cuenta, detalles))
|
||||
{
|
||||
llenarPanel();
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
Button btnEliminar = new Button();
|
||||
btnEliminar.Text = "Cancelar";
|
||||
btnEliminar.Dock = DockStyle.Fill;
|
||||
btnEliminar.BackColor = Color.Red;
|
||||
btnEliminar.FlatStyle = FlatStyle.Flat;
|
||||
btnEliminar.FlatAppearance.BorderSize = 0;
|
||||
btnEliminar.Font = new Font(btnVer.Font.FontFamily, 16);
|
||||
btnEliminar.ForeColor = Color.White;
|
||||
btnEliminar.Click += new EventHandler(delegate (object sender, EventArgs e)
|
||||
{
|
||||
DialogResult result = MessageBox.Show("¿Está seguro de que desea cancelar este registro?",
|
||||
"Confirmación", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
||||
if (result == DialogResult.Yes)
|
||||
{
|
||||
if (service.cancelarCuenta(cuenta.id))
|
||||
{
|
||||
llenarPanel();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
HUDPanel.Controls.Add(btnVer);
|
||||
HUDPanel.Controls.Add(btnSaldar);
|
||||
HUDPanel.Controls.Add(btnEliminar);
|
||||
|
||||
|
||||
carta.Controls.Add(infoPanel,0,0);
|
||||
carta.Controls.Add(HUDPanel,1,0);
|
||||
|
||||
panelCuenta.Controls.Add(carta);
|
||||
panelCuenta.BackColor = Color.Aqua;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private void panelCuenta_Paint(object sender, PaintEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void cuentas_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
Reference in New Issue
Block a user