コード例 #1
0
 private void ShowTextEditor()
 {
     TextViewer viewer = new TextViewer();
     viewer.TextValue = txt.Text;
     DialogResult result = viewer.ShowDialog(this);
     if(result== DialogResult.OK)
         txt.Text = viewer.TextValue;
 }
コード例 #2
0
        private void ShowTextEditor()
        {
            TextViewer viewer = new TextViewer();

            viewer.TextValue = txt.Text;
            DialogResult result = viewer.ShowDialog(this);

            if (result == DialogResult.OK)
            {
                txt.Text = viewer.TextValue;
            }
        }