Example #1
0
 /// <summary>
 /// Merges the contents of 2 RichTextBoxes
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 private void button4_Click(object sender, EventArgs e)
 {
     RTFBuilderbase sb = new RTFBuilder();
     BuilderCode(sb);
     this.richTextBox3.Rtf = sb.ToString();
     this.richTextBox4.Rtf = sb.ToString();
     sb.Clear();
     sb.AppendRTFDocument(this.richTextBox3.Rtf);
     sb.AppendRTFDocument(this.richTextBox4.Rtf);
     this.richTextBox2.Rtf = sb.ToString();
 }
Example #2
0
        /// <summary>
        /// Merges the output of one RtfBuilder into another
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void button3_Click(object sender, EventArgs e)
        {
            RTFBuilderbase sb = new RTFBuilder();

            BuilderCode(sb);
            RTFBuilderbase sb2 = new RTFBuilder();
            BuilderCode(sb2);
            sb.AppendRTFDocument(sb2.ToString());
            this.richTextBox2.Rtf = sb.ToString();
        }