Esempio n. 1
0
 private void btnEditString_Click(object sender, EventArgs e)
 {
     using (MultilineStringEditor editor = new MultilineStringEditor())
     {
         editor.Text = txtString.Text;
         DialogResult result = editor.ShowDialog(this);
         if (result == DialogResult.OK)
         {
             txtString.Text = editor.Text;
         }
     }
 }
Esempio n. 2
0
 private void btnEditString_Click(object sender, EventArgs e)
 {
     using (MultilineStringEditor editor = new MultilineStringEditor())
     {
         editor.Text = txtString.Text;
         DialogResult result = editor.ShowDialog(this);
         if (result == DialogResult.OK)
         {
             txtString.Text = editor.Text;
         }
     }
 }