コード例 #1
0
        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);
        }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
 public ImvertorStartJobForm(EAImvertorJobSettings settings)
 {
     //
     // The InitializeComponent() call is required for Windows Forms designer support.
     //
     InitializeComponent();
     this.settings = settings;
     this.loadData();
 }
コード例 #4
0
        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);
        }
コード例 #5
0
 public EAImvertorJob(UML.Classes.Kernel.Package package, EAImvertorJobSettings settings)
 {
     this._sourcePackage = package;
     this._settings      = settings;
     this._status        = "Created";
 }