Beispiel #1
0
 private void AirbusSystemConfigInit()
 {
     ADBPathtextBox.Text    = ConfigureAppConfig.GetConnectionStringsElementValue("AptDBPath").Substring(45);
     PEPPathtextBox.Text    = ConfigureAppConfig.GetAppSettingsKeyValue("PEPPath");
     GSPathtextBox.Text     = ConfigureAppConfig.GetAppSettingsKeyValue("GSPath");
     OutputPathtextBox.Text = ConfigureAppConfig.GetAppSettingsKeyValue("OutputPath");
 }
Beispiel #2
0
 private void OutputPathSavebutton_Click(object sender, EventArgs e)
 {
     if (OutputPathtextBox.Text != "")
     {
         ConfigureAppConfig.AppSettingsSave("OutputPath", OutputPathtextBox.Text);
     }
     else
     {
         MessageBox.Show("请选择工作路径!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Beispiel #3
0
 private void ADBPathSavebutton_Click(object sender, EventArgs e)
 {
     if (ADBPathtextBox.Text != "" && (ADBPathtextBox.Text.EndsWith("*.mdb") || ADBPathtextBox.Text.EndsWith("*.mdbx")))
     {
         ConfigureAppConfig.ConnectionStringsSave("AptMgr", "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + ADBPathtextBox.Text);
     }
     else
     {
         MessageBox.Show("请设置正确的机场数据库路径!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }