private void LoadText_b_Click(object sender, EventArgs e) { UpdateFullFilePath(); TxtFileMan = new TextFileManager(FullFilePath); string tempText = TxtFileMan.ReadFromFile(); Text_rtb.Text = tempText; }
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); } }