示例#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);
            }
        }
示例#2
0
文件: DemoForm.cs 项目: r3c/cottle
        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);
            }
        }