/// <summary> /// The main entry point for the application. /// </summary> //[STAThread] static void Main() { CultureInfo myCulture = (CultureInfo)Application.CurrentCulture.Clone(); myCulture.NumberFormat.NumberDecimalSeparator = "."; myCulture.NumberFormat.NumberDecimalDigits = 2; Thread.CurrentThread.CurrentCulture = myCulture; Thread.CurrentThread.CurrentUICulture = myCulture; PostgreSQL.connect("shop", "localhost", "postgres", "qwe"); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //Application.Run(new AdminWindow()); //Application.Run(new UserWindow(2)); Application.Run(new LoginWindow()); PostgreSQL.close(); }