private void txtArea_TextChanged(object sender, EventArgs e) { fileOperations.IsSaved = false; editOperations.AddUndo(textBox.Text); editOperations.ClearRedo(); UpdateFormTitle(); }