public DBConfig() { dic = new Dictionary <string, DabaBaseModel>(); System_Model = new DabaBaseModel(); bool success = LoadSysConfig(); bool FormShow = GZFramework.UI.Dev.SplashScreenServer.Shown; if (success == false)//没有数据库配置 { if (frmDBConfigNew.ShowForm() == DialogResult.OK) { success = LoadSysConfig(); if (success == false) { ApplicationEx.Exit(); } } else { ApplicationEx.Exit(); } } if (FormShow == true) { GZFramework.UI.Dev.SplashScreenServer.ShowForm(null);//跳转窗体 } }