Exemple #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);
            }
        }
Exemple #2
0
 override public void SaveFileAs()
 {
     RtdSaver.SaveFileAs(document);
 }