protected override void ProcessLine(string line) { try { VSSBindingRemover.Library.VSSBindingRemover vssRemover = new VSSBindingRemover.Library.VSSBindingRemover(line); vssRemover.RemoveBindings(); this.Out.WriteLine("Processing completed without errors."); } catch (Exception ex) { this.Error.WriteLine(ex.ToString()); } }
private void button2_Click(object sender, EventArgs e) { try { VSSBindingRemover.Library.VSSBindingRemover vssRemover = new VSSBindingRemover.Library.VSSBindingRemover(this.textBox1.Text); vssRemover.RemoveBindings(); MessageBox.Show("Processing completed without errors.", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information); } catch (Exception ex) { MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }