Exemplo n.º 1
0
        public static void SaveFileAs(RichTextDocument doc)
        {
            SaveFileDialog sfd = new SaveFileDialog()
            {
                CheckPathExists = true,
                ValidateNames   = true,
                AddExtension    = true,
                Title           = "Save File - MDI Sample",
                Filter          = "Text files (*.rtf)|*.rtf"
            };

            if (sfd.ShowDialog() == DialogResult.OK)
            {
                doc.Location = sfd.FileName;
                RtdSaver.Save(doc);
            }
        }
Exemplo n.º 2
0
 override public void SaveFileAs()
 {
     RtdSaver.SaveFileAs(document);
 }