예제 #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            DBConnect.Session.Open(); // open the connection with the database

            // Populate the internal product and companies listings
            ProductList.UpdateProducts();
            CompanyList.UpdateCompanies();

            Application.Run(new Form1()); // run the main program form.

            #region Testing Single Forms

            //Application.Run(new frmPointOfSales()); // run the main program form.

            //Application.Run(new SalesForACategory());

            #endregion

            DBConnect.Session.Close(); // safely close the connection to the database.
        }