CMS_Migration_Utility.formMigration.btnScrub_Click C# (CSharp) Method

btnScrub_Click() private method

private btnScrub_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void btnScrub_Click(object sender, EventArgs e)
        {
            Stopwatch watch = new Stopwatch();
            watch.Start();
            System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.WaitCursor;

            centerContent = txtOriginal.Text;

            SwapTags();
            StripTags();
            //TODO: StripAttributes();
            int numReplaced = ReplaceURLs();

            txtOutput.Text = centerContent;
            Clipboard.SetText(centerContent, TextDataFormat.Text);

            watch.Stop();

            lblCurrentURL.Text = "Strip and Replace operation completed!";
            lblTime.Text = "Replaced " + numReplaced + " unique links in " + (watch.ElapsedMilliseconds / 1000).ToString() + " second(s)";

            //System.Windows.Forms.MessageBox.Show("Done");
        }