private void SaveRtfText() { using (SaveFileDialog dialog = DialogFactory.GetSaveRtfDialog()) { if (dialog.ShowDialog() == DialogResult.OK) { rtfBox.SaveFile(dialog.FileName); } } }
private void OpenRtfText() { using (OpenFileDialog dialog = DialogFactory.GetOpenRtfDialog()) { if (dialog.ShowDialog() == DialogResult.OK) { rtfBox.Clear(); rtfBox.LoadFile(dialog.FileName); SetModify(); } } }