private void AddOrUpdatePluginAssembly() { WorkAsync(new WorkAsyncInfo { Message = "Add/Update plugin assembly..", Work = (bw, e) => { RegisterPlugIns rp = new RegisterPlugIns(Service); var response = rp.AddOrUpdatePluginAssembly(assemblyPathLocation); e.Result = response.ToString(); }, PostWorkCallBack = e => { if (e.Error == null) { rtbLogMessages.Text = e.Result.ToString(); rtbLogMessages.Visible = true; } else { MessageBox.Show(this, @"An error occured: " + e.Error.Message, @"Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } } }); }
private void ProcessPlugInRegistrationSteps() { WorkAsync(new WorkAsyncInfo { Message = "Update plugin and Register plugin steps..", Work = (bw, e) => { RegisterPlugIns rp = new RegisterPlugIns(Service); var response = rp.ProcessRegistration(assemblyPathLocation, solutionName, registrationStepsXML); e.Result = response.ToString(); }, PostWorkCallBack = e => { if (e.Error == null) { rtbLogMessages.Text = e.Result.ToString(); rtbLogMessages.Visible = true; } else { MessageBox.Show(this, @"An error occured: " + e.Error.Message, @"Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } } }); }