SVN-Revision: r280
This commit is contained in:
cyf
2025-02-24 03:23:09 +00:00
parent b46e9f1c0d
commit cd24e0ebbb
3 changed files with 14 additions and 82 deletions
+2 -30
View File
@@ -65,7 +65,7 @@ namespace Lskj.Main
try
{
DBConfig.Instance.ReadConfig(true);
this.txtServerName.Text = string.IsNullOrWhiteSpace(DBConfig.Instance.ExternalNetworkAddress)? DBConfig.Instance.ServerName: DBConfig.Instance.ExternalNetworkAddress;
this.txtServerName.Text = DBConfig.Instance.ServerName;
this.txtServerNameInternal.Text = DBConfig.Instance.InternalNetworkAddress;
this.txtDBName.Text = DBConfig.Instance.DataBase;
@@ -197,32 +197,4 @@ namespace Lskj.Main
{
if (DBConfig.Instance.CreateConnection())
{
if (DelphiHelper.Delphi_Init(new StringBuilder(DBConfig.Instance.GetDelphiConnection())) == 0)
{
MessageUtil.Show(ResourceKeys.UnConnectServer + "[By Delphi]");
return;
}
if (isSave)
{
DBConfig.Instance.WriteConfig();
this.DialogResult = DialogResult.OK;
this.Close();
}
else
{
MessageUtil.Show(ResourceKeys.ConnectSuccess);
}
}
else
{
MessageUtil.Show(ResourceKeys.ConnectFault);
}
//IniHelper.Write("SystemResources.ini", "FrmConfigFlag", "0");
}
catch (Exception)
{
MessageUtil.Show(ResourceKeys.ConnectFault);
}
}
}
}
if (Del