private void openPackage(object sender, EventArgs e)
        {
            try
            {
                if (System.IO.File.Exists(textBoxPackagePath.Text))
                {
                    var publishJob = new SampleJob()
                    {
                        JobName = "Sample"
                    };
                    if (System.IO.File.Exists(textBoxIconPath.Text) && !string.IsNullOrWhiteSpace(textBoxProjectType.Text))
                    {
                        _eventAggregator.Publish(new OpenProjectPackageEvent(textBoxPackagePath.Text, publishJob, textBoxIconPath.Text, textBoxProjectType.Text));
                        return;
                    }

                    _eventAggregator.Publish(new OpenProjectPackageEvent(textBoxPackagePath.Text, publishJob));
                    return;
                }
                _app.ExecuteAction <OpenPackageAction>();
            }
            catch (Exception exception)
            {
                MessageBox.Show(exception.Message);
            }
        }
        private void createReturnPackageBtn_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrWhiteSpace(textBoxJobName.Text))
            {
                return;
            }

            //create the Job object
            var publishJob = new SampleJob()
            {
                JobName = textBoxJobName.Text
            };
            var currentProject = SdlTradosStudio.Application.GetController <ProjectsController>().CurrentProject;

            if (currentProject != null)
            {
                var selectedProject = currentProject.GetProjectInfo().Id.ToString();
                _eventAggregator.Publish(new CreateReturnPackageEvent(selectedProject, publishJob));
            }
        }