public MainForm() { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // /* * GestorIvas.Save(); * GestorFamilias.Save(); * GestorArticulos.Save(); * GestorPlazas.Save(); */ GestorIvas.Init(); GestorFamilias.Init(); GestorArticulos.Init(); GestorPlazas.Init(); GestorIvas.Load(); GestorFamilias.Load(); GestorArticulos.Load(); GestorPlazas.Load(); }
private void botonAceptar_Click(object sender, System.EventArgs e) { GestorIvas.SetIva(1, Convert.ToInt32(tbox_Iva1.Text)); GestorIvas.SetIva(2, Convert.ToInt32(tbox_Iva2.Text)); GestorIvas.SetIva(3, Convert.ToInt32(tbox_Iva3.Text)); GestorIvas.SetIva(4, Convert.ToInt32(tbox_Iva4.Text)); GestorIvas.SetIva(5, Convert.ToInt32(tbox_Iva5.Text)); GestorIvas.Save(); this.Close(); }
public IvasForm() { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // GestorIvas.Load(); tbox_Iva1.Text = Convert.ToString(GestorIvas.DataTable.Rows.Find(1)["Porcentaje"]); tbox_Iva2.Text = Convert.ToString(GestorIvas.DataTable.Rows.Find(2)["Porcentaje"]); tbox_Iva3.Text = Convert.ToString(GestorIvas.DataTable.Rows.Find(3)["Porcentaje"]); tbox_Iva4.Text = Convert.ToString(GestorIvas.DataTable.Rows.Find(4)["Porcentaje"]); tbox_Iva5.Text = Convert.ToString(GestorIvas.DataTable.Rows.Find(5)["Porcentaje"]); }