private void publish(UML.Classes.Kernel.Package selectedPackage, EAImvertorJobSettings jobSettings) { //somebody called the imvertor, we can show the control this._imvertorCalled = true; var imvertorJob = new EAImvertorJob(selectedPackage, jobSettings); this.startJob(imvertorJob); }
private void publish(UML.Classes.Kernel.Package selectedPackage) { EAImvertorJobSettings jobSettings = new EAImvertorJobSettings(this.settings); if (new ImvertorStartJobForm(jobSettings).ShowDialog(this.model.mainEAWindow) == DialogResult.OK) { publish(selectedPackage, jobSettings); } }
public ImvertorStartJobForm(EAImvertorJobSettings settings) { // // The InitializeComponent() call is required for Windows Forms designer support. // InitializeComponent(); this.settings = settings; this.loadData(); }
private void publish(UML.Classes.Kernel.Package selectedPackage, EAImvertorJobSettings jobSettings) { //somebody called the imvertor, we can show the control this._imvertorCalled = true; //create new backgroundWorker var imvertorJobBackgroundWorker = new BackgroundWorker(); //imvertorJobBackgroundWorker.WorkerSupportsCancellation = true; //TODO: implement cancellation imvertorJobBackgroundWorker.WorkerReportsProgress = true; imvertorJobBackgroundWorker.DoWork += imvertorBackground_DoWork; imvertorJobBackgroundWorker.ProgressChanged += imvertorBackground_ProgressChanged; imvertorJobBackgroundWorker.RunWorkerCompleted += imvertorBackgroundRunWorkerCompleted; var imvertorJob = new EAImvertorJob(selectedPackage, jobSettings); //update gui this.imvertorControl.addJob(imvertorJob); //show the control this.model.showWindow(windowName); //start job in the background imvertorJobBackgroundWorker.RunWorkerAsync(imvertorJob); }
public EAImvertorJob(UML.Classes.Kernel.Package package, EAImvertorJobSettings settings) { this._sourcePackage = package; this._settings = settings; this._status = "Created"; }