コード例 #1
0
 // Button GoButton)
 public TransactionScript(Source sourceSource, Target targetTarget, Configuration config, DoneDelegate doneHandler)
 {
     this.sourceSource = sourceSource;
     this.targetTarget = targetTarget;
     this.config = config;
     this.doneHandler = doneHandler;
     //this.goButton = GoButton;
 }
コード例 #2
0
ファイル: DbDeployForm.cs プロジェクト: MunwarMMR/Dbdeploy
 private bool sourceLoad(Source source)
 {
     bool success = false;
     try
     {
         meta = new OdbcConnection(source.connectionString);
         TargetsRead();
         ConfigurationsRead();
         success = true;
     }
     catch (Exception ex)
     {
         log.log(Logger.LogLevel.error, "Error reading targets...");
         log.log(Logger.LogLevel.error, ex.Message);
     }
     return success;
 }
コード例 #3
0
ファイル: DbDeployForm.cs プロジェクト: MunwarMMR/Dbdeploy
 private void sourceAddButton_Click(object sender, EventArgs e)
 {
     DatabaseForm form = new DatabaseForm();
     if (form.ShowDialog() == DialogResult.OK)
     {
         Source source = new Source(form.ServerText.Text, form.DatabaseNameText.Text, form.ConnectionStringText.Text);
         sourceList.Items.Add(source);
         sourceList.SelectedItem = source;
         SourcesSave();
     }
 }