Ejemplo n.º 1
0
        private void Open_Click(object sender, RoutedEventArgs e)
        {
            SaveAs saveAs = new SaveAs("Load", ref plainText);
            saveAs.ShowDialog();

            RichTextBox.Document.Blocks.Clear();
            RichTextBox.Document.Blocks.Add(new Paragraph(new Run(saveAs.message)));

            saveAs.Close();
        }
Ejemplo n.º 2
0
 private void SaveAs_Click(object sender, RoutedEventArgs e)
 {
     SaveAs saveAs = new SaveAs("Save", ref plainText);
     saveAs.message = new TextRange(RichTextBox.Document.ContentStart, RichTextBox.Document.ContentEnd).Text;
     saveAs.Show();
 }