Migrate configuration from UserConfig to database
This commit is contained in:
@@ -30,29 +30,19 @@ Public Class frmConfig
|
||||
TBEDI_XML_ITEMSTableAdapter.Connection.ConnectionString = oBuilder.ToString()
|
||||
TBEDI_XML_ITEMSTableAdapter.Fill(Me.DS_DD_ECM.TBEDI_XML_ITEMS)
|
||||
|
||||
txtInputDir.EditValue = Config.InputDirectory
|
||||
txtOutputDir.EditValue = Config.OutputDirectory
|
||||
txtSchemaDir.EditValue = Config.SchemaDirectory
|
||||
txtInputDir.EditValue = My.GeneralConfiguration.InputDirectory
|
||||
txtOutputDir.EditValue = My.GeneralConfiguration.OutputDirectory
|
||||
txtSchemaDir.EditValue = My.GeneralConfiguration.TemplateDirectory
|
||||
|
||||
txtBaseURL.EditValue = Config.Webservice.BaseUrl
|
||||
txtUsername.EditValue = Config.Webservice.Username
|
||||
txtPassword.EditValue = Config.Webservice.Password
|
||||
txtImportBasePath.EditValue = Config.Webservice.ImportBasePath
|
||||
txtImportRelativePath.EditValue = Config.Webservice.ImportRelativePath
|
||||
txtBaseURL.EditValue = My.GeneralConfiguration.Webservice.BaseUrl
|
||||
txtUsername.EditValue = My.GeneralConfiguration.Webservice.Username
|
||||
txtPassword.EditValue = My.GeneralConfiguration.Webservice.Password
|
||||
txtImportBasePath.EditValue = My.GeneralConfiguration.Webservice.ImportBasePath
|
||||
txtImportRelativePath.EditValue = My.GeneralConfiguration.Webservice.ImportRelativePath
|
||||
End Sub
|
||||
|
||||
Private Sub BarButtonItem1_ItemClick(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles BarButtonItem1.ItemClick
|
||||
Config.Webservice.BaseUrl = txtBaseURL.EditValue
|
||||
Config.Webservice.Username = txtUsername.EditValue
|
||||
Config.Webservice.Password = txtPassword.EditValue
|
||||
Config.Webservice.ImportBasePath = txtImportBasePath.EditValue
|
||||
Config.Webservice.ImportRelativePath = txtImportRelativePath.EditValue
|
||||
|
||||
Config.InputDirectory = txtInputDir.EditValue
|
||||
Config.OutputDirectory = txtOutputDir.EditValue
|
||||
Config.SchemaDirectory = txtSchemaDir.EditValue
|
||||
|
||||
ConfigManager.Save()
|
||||
|
||||
Try
|
||||
TBEDIXMLITEMSBindingSource.EndEdit()
|
||||
|
||||
Reference in New Issue
Block a user