Exemple #1
0
        private void LoadText_b_Click(object sender, EventArgs e)
        {
            UpdateFullFilePath();
            TxtFileMan = new TextFileManager(FullFilePath);
            string tempText = TxtFileMan.ReadFromFile();

            Text_rtb.Text = tempText;
        }
Exemple #2
0
        private void SaveText_b_Click(object sender, EventArgs e)
        {
            UpdateFullFilePath();
            TxtFileMan = new TextFileManager(FullFilePath);
            string tempText = Text_rtb.Text;

            //Are there actually changes to save?
            if (IsTextEditorDifferent())
            {
                TxtFileMan.WriteToFile(tempText);
            }
        }