Пример #1
0
 private void SaveRtfText()
 {
     using (SaveFileDialog dialog = DialogFactory.GetSaveRtfDialog())
     {
         if (dialog.ShowDialog() == DialogResult.OK)
         {
             rtfBox.SaveFile(dialog.FileName);
         }
     }
 }
Пример #2
0
 private void OpenRtfText()
 {
     using (OpenFileDialog dialog = DialogFactory.GetOpenRtfDialog())
     {
         if (dialog.ShowDialog() == DialogResult.OK)
         {
             rtfBox.Clear();
             rtfBox.LoadFile(dialog.FileName);
             SetModify();
         }
     }
 }