private void SignFile(string filePathToSign, string outputPath) { if (InvokeRequired) { Invoke(new MethodInvoker(() => SignFile(filePathToSign, outputPath))); return; } Signer signer = new Signer(filePathToSign, outputPath); InstallerForm form = new InstallerForm(signer, WorkingPath); // Add the form to the list so that we can monitor it's progress _processForms.Push(form); form.Show(this); }
private void BuildInstaller(string installerType, string configuration) { if (InvokeRequired) { Invoke(new MethodInvoker(() => BuildInstaller(installerType, configuration))); return; } Installer installerBuilder = new Installer(WorkingPath, installerType, textBox_Label.Text, configuration); InstallerForm form = new InstallerForm(installerBuilder, WorkingPath); // Add the form to the list so that we can monitor it's progress _processForms.Push(form); form.Show(this); }