Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
        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);
            }
        }