Example #1
0
        static void Main()
        {
            string connection = "Server = localhost;  Database = OrderDB; Integrated Security = SSPI;";

            if (SqlManage.connectToDatabase(connection))
            {
                //WordOperator word = new WordOperator();
                //word.CreateWord();
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new LoginForm());
            }
            else
            {
                MessageBox.Show("数据库连接失败!");
            }
        }