private void FrmSetConnection_Load(object sender, EventArgs e) { tnsNames = new List <string>(); _cp = new CryPassword(); //获取tns配置 this.GetTnsConfig(); //获取当前配置 this.GetCurrentConfig(); }