This commit is contained in:
45
source/WinFormApp/test.cs
Normal file
45
source/WinFormApp/test.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace AyaNova
|
||||
{
|
||||
public partial class test : Form
|
||||
{
|
||||
public test()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public string RtfToDisplay
|
||||
{
|
||||
set
|
||||
{
|
||||
tbInsert.Text = value;
|
||||
}
|
||||
}
|
||||
|
||||
private void rt_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
tbRtfInControl.Text = rt.Rtf;
|
||||
}
|
||||
|
||||
private void tbInsert_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
rt.Rtf = tbInsert.Text;
|
||||
}
|
||||
|
||||
private void updateToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
tbRtfInControl.Text = rt.Rtf;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user