public class UpdateManufacturer { [DeclareAction("UpdateManufacturererData")] public void PartSynchronize() { DialogResult oResult = new DialogResult(); oResult = MessageBox.Show("Sollen die Hersteller im Projekt aktualisiert werden ?","Update...",MessageBoxButtons.YesNo); if(oResult == DialogResult.Yes) { using(Progress progress = new Progress("SimpleProgress")) { progress.BeginPart(100,""); progress.SetAllowCancel(true); if(!progress.Canceled()) { progress.BeginPart(50,""); new CommandLineInterpreter().Execute("XPamUtility /UpdateEmbeddedManufacturers:1"); progress.EndPart(); } if(!progress.Canceled()) { progress.BeginPart(50,""); new CommandLineInterpreter().Execute("XFgEvaluateProjectAction"); progress.EndPart(); } } } } }