Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        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"]);
        }