Beispiel #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Form1         frm    = new Form1();
            SQLConnConfig config = new SQLConnConfig();

            if (config.testConnection())
            {
            }
            else
            {
                frm.SetMenuItemsEnableStatus(false);
                frm.SetMsg("提示:数据库配置错误!");
            }

            Application.Run(frm);
        }
Beispiel #2
0
 public frmSQLConfig()
 {
     InitializeComponent();
     mySQLConnectionTest = new SQLConnConfig();
 }