private void txtArea_TextChanged(object sender, EventArgs e)
 {
     fileOperations.IsSaved = false;
     editOperations.AddUndo(textBox.Text);
     editOperations.ClearRedo();
     UpdateFormTitle();
 }
 public Notepad()
 {
     InitializeComponent();
     fileOperations = new FileOperation();
     editOperations = new EditOperation();
     fileOperations.NewFile();
     this.Text = fileOperations.Filename;
     editOperations.AddUndo(textBox.Text);
 }