private void buttonClean_Click(object sender, EventArgs e) { SimpleDocument document; ISetting setting; setting = this.SettingCreate(); try { document = new SimpleDocument(this.textBoxInput.Text, setting); this.DisplayText(document.Source()); } catch (ParseException exception) { this.DisplayError(exception); } }
private void buttonClean_Click(object sender, EventArgs e) { SimpleDocument document; ISetting setting; setting = this.SettingCreate (); try { document = new SimpleDocument (this.textBoxInput.Text, setting); this.DisplayText (document.Source ()); } catch (ParseException exception) { this.DisplayError (exception); } }