public SetupProjectConverterApp(string sourceFile, InputProject inputProject, OutputProject outputProject) { mSourceProjectFile = sourceFile; mInputProject = inputProject; mOutputProject = outputProject; mSourceProjectFileInfo = new FileInfo(mSourceProjectFile); mProgressDialog = new AsynchronousDialog(); mProgressDialog.ShowProgressDialog(); }
private void buttonStart_Click(object sender, EventArgs e) { InputProject inputProject = InputProject.VdProject; if (radioButtonAi.Checked) { inputProject = InputProject.AiProject; } if (radioButtonISLE.Checked) { inputProject = InputProject.IsleProject; } switch (inputProject) { case InputProject.VdProject: openFileDialog.Filter = "Setup and Deploy Projects (*.vdproj)|*.vdproj|All files (*.*)|*.*"; break; case InputProject.IsleProject: openFileDialog.Filter = "InstallShield Limited Edition Projects (*.isl)|*.isl|All files (*.*)|*.*"; break; case InputProject.AiProject: openFileDialog.Filter = "Advanced Installer Projects (*.aip)|*.aip|All files (*.*)|*.*"; break; } OutputProject outputProject = OutputProject.InnoSetup; if (radioButtonNSIS.Checked) { outputProject = OutputProject.Nsis; } if (openFileDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) { SetupProjectConverterApp projectConverter = new SetupProjectConverterApp(openFileDialog.FileName, inputProject, outputProject); try { projectConverter.ConvertProject(); } catch (Exception ex) { System.Diagnostics.Trace.WriteLine("[SetupProjectConverter] ExecConvertVdProjectCommand() - ConvertProject: " + ex.Message); projectConverter.ProgressMessageAppend("Exception: " + ex.Message); projectConverter.ProgressDialog.EnableButton(true); } } }
public async Task <ActionResult <OutputProject> > Get(Guid projectId) { try { logger.LogInformation($"Beginning request: /api/projects/{projectId} GET"); Project project = await projectManager.GetProjectAsync(projectId); OutputProject output = projectMapper.MapOutputProject(project); logger.LogInformation($"Request complete: /api/projects/{projectId} GET"); return(Ok(output)); } catch (Exception ex) { return(exceptionManager.Handle(ex)); } }
public async Task <ActionResult <OutputProject> > Put(Guid projectId, [FromBody] UpdateProject updateProject) { try { logger.LogInformation($"Beginning request: /api/projects/{projectId} PUT"); Project updatedProject = await projectManager.UpdateProjectAsync(projectId, updateProject.Name, updateProject.Description); OutputProject output = projectMapper.MapOutputProject(updatedProject); logger.LogInformation($"Request complete: /api/projects/{projectId} PUT"); return(Ok(output)); } catch (Exception ex) { return(exceptionManager.Handle(ex)); } }
public async Task <ActionResult <OutputProject> > Post([FromBody] CreateProject createProject) { try { logger.LogInformation("Beginning request: /api/projects POST"); Project createdProject = await projectManager.CreateProjectAsync(createProject.Name, createProject.Description); string createdProjectUrl = $"{Utilities.Web.GetBaseUrl(HttpContext)}/api/projects/{createdProject.PublicProjectId}"; OutputProject output = projectMapper.MapOutputProject(createdProject); logger.LogInformation("Request complete: /api/projects POST"); return(Created(createdProjectUrl, output)); } catch (Exception ex) { return(exceptionManager.Handle(ex)); } }