Ejemplo n.º 1
0
        public Form1()
        {
            InitializeComponent();
            control     = new Ux_control(gb_order, gb_client, gb_product);
            bll_client  = new BLL_client();
            bll_product = new BLL_product();

            L_bllProduct = new List <BLL_product>();
            L_bllClient  = new List <BLL_client>();

            sellerlist   = new List <BLL_product>();
            sellerClient = new BLL_client();
            verification = new verify();

            count_voucher = 1;


            count_purchase = 1;
            con            = new connection();


            try
            {
                con.init();
                string query = "SELECT `number` FROM `count` WHERE id like " + 1;
                command = new MySqlCommand(query, con.connect);
                infos   = command.ExecuteReader();

                while (infos.Read())
                {
                    count_purchase = Convert.ToInt32(infos["number"]);
                }
                con.disconnect();
            }
            catch (Exception excep)
            {
                throw new Exception("Erro de comandos!\n" + excep.Message);
            }
        }